Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. disable back and forward button

disable back and forward button

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ashish Kumar Vyas
    wrote on last edited by
    #1

    How to disable back and forward button in browser? Ashish K. Vyas

    S R 2 Replies Last reply
    0
    • A Ashish Kumar Vyas

      How to disable back and forward button in browser? Ashish K. Vyas

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      One of the best Method is Kill the session using Session.Abondon(); once user is logged out

      Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

      D 1 Reply Last reply
      0
      • A Ashish Kumar Vyas

        How to disable back and forward button in browser? Ashish K. Vyas

        R Offline
        R Offline
        RepliCrux
        wrote on last edited by
        #3

        You can't disable the back button as far as I know, but you can add code in javascript so that when someone clicks back button, History + 1, so it will never go back. Google that :)

        A 1 Reply Last reply
        0
        • R RepliCrux

          You can't disable the back button as far as I know, but you can add code in javascript so that when someone clicks back button, History + 1, so it will never go back. Google that :)

          A Offline
          A Offline
          Ashish Kumar Vyas
          wrote on last edited by
          #4

          Hi, Can you send me that code(java script)and let me know where i need to add that code. thank you Ashish K. Vyas

          V 1 Reply Last reply
          0
          • A Ashish Kumar Vyas

            Hi, Can you send me that code(java script)and let me know where i need to add that code. thank you Ashish K. Vyas

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            <script language="javascript"> history.forward(); </script>

            Vasudevan Deepak Kumar Personal Homepage Tech Gossips

            1 Reply Last reply
            0
            • S Sathesh Sakthivel

              One of the best Method is Kill the session using Session.Abondon(); once user is logged out

              Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              What the ...... ???? What does abandoning the session on the server-side have ANYTHING to do with the client-side's browser buttons??!?!?!?!?!

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups