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

    Question how to disable back button??

    HI

    I want to disable my back in browser and also when i right click
    on browser.
    If any one know please help me..


    Thanks

  • #2
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello sonal,

    The best way I have done this in the past is to tell each page to go forward one place in the history when it is loaded. So that when the page loads, it will redirect to the page in front of it, and if there isn't a page in front of it, then nothing will happen.

    Insert the following tag replacing your <body> tag:
    <body onLoad="history.go(+1)">

    Let me know how this goes.

    Have a good day.
    Last edited by razor; 04-12-2005 at 09:08 AM.
    Space exists so everything doesn't happen to you. Time exists so everything doesn't happen at once. Life creates opportunity. Your part in this scene named life is to take the opportunity you encounter, or lose out, miserably..

    one day all will suffice..


  •  

    Posting Permissions

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