javascript asssign on click event to button code example Example: javascript button <button onclick="Function()">Text</button>