call a function when button clicked html code example Example: javascript button <button onclick="Function()">Text</button>