Hello and welcome to our community! Is this your first visit?
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
    Aug 2005
    Thanked 0 Times in 0 Posts

    Unhappy Need help with browser function

    Hi guys, i am a student currently developing a transaction site, which is my school project. i need to find out how i can stop or prevent user from clicking the back function on the browser. This is because i need to block people from clicking back to a transaction page after completing the transaction.

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Chamonix, France
    Thanked 3 Times in 3 Posts
    It is not possible to disable the back button using JavaScript.

    Also, JavaScript runs on the client not on the server and can be blocked or switched off easily by the user. It should not be used on its own as a security measure.

    Make sure your checks and processing are handled by your server-side language (PHP, Java, ASP, etc) and look to handle things that way.

    Hope this helps.

    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper


    Posting Permissions

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