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. ASP.NET
  4. How can I disable "Back" in my page

How can I disable "Back" in my page

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 2 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.
  • I Offline
    I Offline
    isiran
    wrote on last edited by
    #1

    Hi everyone:-D :| I'd like to disable "Back" button on my browser for my users on my webApllication or webSite. :confused: How can I do this?? ;) If U know plz answer me as soon as possible :) Thanks alot :rose:

    S 1 Reply Last reply
    0
    • I isiran

      Hi everyone:-D :| I'd like to disable "Back" button on my browser for my users on my webApllication or webSite. :confused: How can I do this?? ;) If U know plz answer me as soon as possible :) Thanks alot :rose:

      S Offline
      S Offline
      Suamal
      wrote on last edited by
      #2

      You can't disable back button.But you can restrict the back button functionality // go forward window.history.forward(); while pressing back it will automatically forwards once.So the same page retains. while the history.forward() method lets you access the next URL in the history list (equivalent to hitting the browser's "Forward" button).

      I 2 Replies Last reply
      0
      • S Suamal

        You can't disable back button.But you can restrict the back button functionality // go forward window.history.forward(); while pressing back it will automatically forwards once.So the same page retains. while the history.forward() method lets you access the next URL in the history list (equivalent to hitting the browser's "Forward" button).

        I Offline
        I Offline
        isiran
        wrote on last edited by
        #3

        :laugh: Hooooraaaaa I'm very delighted and so happy to find my answer. If U were near me I would kiss U:omg: Thanks alot.

        1 Reply Last reply
        0
        • S Suamal

          You can't disable back button.But you can restrict the back button functionality // go forward window.history.forward(); while pressing back it will automatically forwards once.So the same page retains. while the history.forward() method lets you access the next URL in the history list (equivalent to hitting the browser's "Forward" button).

          I Offline
          I Offline
          isiran
          wrote on last edited by
          #4

          Hi Where Should I add this code? In my webpage htmlSource? Thanks

          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