execute js when htm button clicked code example Example: javascript button <button onclick="Function()">Text</button>