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. Disable Back Button

Disable Back Button

Scheduled Pinned Locked Moved ASP.NET
question
2 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.
  • G Offline
    G Offline
    ganesan balachandar
    wrote on last edited by
    #1

    Hi, I want to disable the backbutton for the web pages in my application. How do I do that. Thanks and Regards Balachandar Ganesan. I want to fully utilize every thing.

    L 1 Reply Last reply
    0
    • G ganesan balachandar

      Hi, I want to disable the backbutton for the web pages in my application. How do I do that. Thanks and Regards Balachandar Ganesan. I want to fully utilize every thing.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I don't think the back button can be disabled but I think we can fake the functionality using javascript. What I think you can do is, you can make sure a newly selected page replaces the previous one in the page history list try to use something like this in javascript location.replace('mynewPage.htm'); The location.replace('whateverUrl.aspx') call will replace the current page in the history list with the new page thus preventing going back to the current page. You might also use that in a link with new page otherwise you will have to open that page without a toolbar or menubar Hope this gives you a a starting point

      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