Simple multi-page simulation
Shown above is part of some simple code to simulate a finite state machine, but getting it to work like a web site.
 
The idea shows that web sites and interactive devices are pretty much the same thing.
 
Play with the code here, which shows a very simple finite state machine with three states.
 
Web sites = interactive devices
amazon.co.uk  |  amazon.com...http://www.amazon.co.uk/Press-Interaction-Programming-Harold-Thimbleby/dp/0262201704/ref=sr_1_1/203-4139330-5984717?ie=UTF8&s=books&qid=1192227737&sr=8-1http://www.amazon.com/Press-Interaction-Programming-Harold-Thimbleby/dp/0262201704/ref=sr_1_1/203-4139330-5984717?ie=UTF8&s=books&qid=1192227737&sr=8-1http://mitpress.mit.edu/catalog/item/default.asp?ttype=2&tid=11265http://www.mitpress.com/presson