Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2008
    Thanked 0 Times in 0 Posts

    Disable the Address bar from changing the URL

    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

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Thanked 4,732 Times in 4,694 Posts
    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.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts