View Full Version : Disable the Address bar from changing the URL

Jon W
03-18-2009, 12:19 AM
Hello, I'm working on a text based game right now and I need a way to disable the address bar from people modifying the URL. I know there is ways around this but at least for the not so computer smart people I can keep them from changing the URL and cheating. (I have some other ideas too for people that are more computer smart) I also need to disable the back and forward button on, IE7, Firefox, and Google Chrome.

What would be the script to place in to do this? lol I'm not JavaScript smart.

Jon W

Old Pedant
03-18-2009, 02:33 AM
Pop up a new window that doesn't HAVE an address bar.

You can also trap the ONUNLOAD of the window and kill the game if they aren't going to the right place, but that means you have to CAREFULLY handle all the right places.

Good luck on this. I think you are fighting a mostly losing battle.