Execute JavaScript from button
Make a button call a JavaScript function.
<input id="clickMe" type="button" value="clickme" onclick="doFunction();" />
And with parameters
<input id="clickMe" type="button" value="clickme" onclick="doFunction('Hello', 42);" />
Do note the use of single-quotes, which do not interfere with the double-quotes used in the HTML markup.