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. Web Development
  3. Disable back button.

Disable back button.

Scheduled Pinned Locked Moved Web Development
csharpasp-net
4 Posts 3 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.
  • V Offline
    V Offline
    Vikram
    wrote on last edited by
    #1

    Hi For my website .. i want to disable user from using back button of the browser. Web site is in asp.net

    Vikram I Code...

    V S 2 Replies Last reply
    0
    • V Vikram

      Hi For my website .. i want to disable user from using back button of the browser. Web site is in asp.net

      Vikram I Code...

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

      history.forward();

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      V 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        history.forward();

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        V Offline
        V Offline
        Vikram
        wrote on last edited by
        #3

        Thank you :-D

        Vikram I Code...

        1 Reply Last reply
        0
        • V Vikram

          Hi For my website .. i want to disable user from using back button of the browser. Web site is in asp.net

          Vikram I Code...

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #4

          Vikram..... wrote:

          For my website .. i want to disable user from using back button of the browser.

          For my browser... i want the back button to always work. :| What you want is sketchy at best - yes, there are certain hacks that can kinda do what you want, but there's no promise that they'll work on all browsers or for all users, and unless you are very careful can actually make things worse in situations where your real goal is to prevent multiple posts or equiv. Design your system so that it is tolerant of the user using their browser.

          ---- Do you see what i see? Why do we live like this? Is it because it's true... ...That ignorance is bliss?

          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