Thursday, February 16, 2012

SOFT6008 Exercise

This is how you make a button in a webpage to call some JavaScript

<button type="button" onclick="doSomething()">Go</button>

With the addition of this bit of code you now know enough to re-code the dice, cards, and slot machine games so they can be played by clicking a button instead of reloading the page. See if you can give it a go.

No comments: