SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Addict chartahir's Avatar
    Join Date
    Oct 2006
    Location
    Karachi, Pakistan
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Disable goto back page option ?

    I want to disable all the option,

    which inlcude

    using right click and select back,
    pressing the backspace button on keyborad
    and the back option on above menu to be disabled.
    and other ways of going back to previous page.

    Is there a way to do that using JS.
    chartahir

  2. #2
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    396
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I wouldn't recommend doing it at all, but I guess you must have your reasons, check this page for three ways of doing it: http://www.htmlgoodies.com/tutorials...le.php/3478911

    But you can't truely disable the button.

  3. #3
    SitePoint Addict chartahir's Avatar
    Join Date
    Oct 2006
    Location
    Karachi, Pakistan
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks, i'll check it.
    chartahir

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Just remember that modern web browsers either disable the web page's ability to do such things or lets the browser owner decide whether to allow it or not and so your visitors will get to choose whether to allow the page to block those functions or not.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    SitePoint Guru Ize's Avatar
    Join Date
    Nov 2005
    Location
    The Netherlands
    Posts
    808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure there's a way of doing this: don't put your information online, publish a flyer.

    I'm meaning absolutely no offense, but when will people stop trying to annoy their visitors with scripts like the above-mentioned?

  6. #6
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's impossible, and it's meaningless to even try. If you find that you need to do this, then there is something wrong with your application.

  7. #7
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you manage to do it, I think you will definitely succeed: most users will never go back to your site again.
    Birnam wood is come to Dunsinane

  8. #8
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by AutisticCuckoo View Post
    If you manage to do it, I think you will definitely succeed: most users will never go back to your site again.

    Driving newbie visitors away from a site without affecting experienced web users (who have disabled all web pages ability to interfere with their browser like that) is about the only reason for doing such things. If you want to drive everyone away and not just web novices it is easier to delete the site completely. It has no other noticeable effect.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

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