Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Prevent users going to previous page?

    Hi.

    It's enough for me if I can block the altKey + left arrow combo in IExplorer, because users will not have a mouse (something like a kiosk).


    Can it be done with JavaScript?

    I can detect a combo like shift+any key, but can't resolve the altKey + lef tarrow .

    Thank you in advance:
    Miguelus

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    You can't stop visitors returning to the previous page. Even if you could block the particular key combinations using Javascript (and different browser use different combinations so you'd have to block just about all input to be certain) your visitors don't have to allow the javascript to run.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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