- Just put formless buttons on the page. Ie buttons that are not in forms. For instance
<button id="ss" type="submit" onclick="function1();">Function 1</button>
- As shown above, specify the onclick action to be the name of one of your functions.
- Create an empty "div"s into which you will put the result of your functions. For instance
<div id="f1result"></div>
Rather than putting everything in divs, maybe use h1, h2, h3 and h4 elements?
- Reminder. You can put Javascript functions and code directly between script tags. For instance this will work
<script>
function ff() { return 6*3; }
</script>
You can also put javascript into a separate file that is specified in the script tag.
<script src="JQ/jquery-1.9.1.min.js"></script>