Web Development / Javascript Question: Back Button
By
codemonkey uk (Wed May 04, 2011 at 04:59:36 PM EST) (
all tags)
Okay, so the google-fu is failing me on this one - and it's too long to ask in a tweet, so I'll ask here.
In my browser game, which is implemented as a single page of html/css/javescript, the page loads as static html, with a menu of start options in the form: <a onclick="..." href="#">Go</a> Where the onclick handler is a javascript call that rebuilds the page according to what option you select and the game begins.
It seems like a natural thing for the user to hit "back" at this point to return to the menu, but hitting back in the browser at this point does not reload the page.
How do I make it do that?
(9 comments, 167 words in story)
Full Story