how to call a function on click in html code example Example: javascript button <button onclick="Function()">Text</button>