A smart HTML5 push button