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