1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Disbale browser back button

Discussion in 'Web Design & Development' started by ashras99, Sep 18, 2004.

Thread Status:
Not open for further replies.
  1. ashras99

    ashras99 Thread Starter

    Joined:
    Jul 13, 2002
    Messages:
    1,044
    I need a JavaScript code to disable browser Back button.

    By using this script the back button is not gone disable but indirectly user not able to go on the previous page. But i want button disable.

    <script language="javascript">
    window.history.forward(1);
    </script>

    JavaScript code should be compatible with Internet Explorer 4.0 and later versions and Netscape 4.2 and later versions
     
  2. dvk01

    dvk01 Moderator Malware Specialist

    Joined:
    Dec 14, 2002
    Messages:
    56,253
    First Name:
    Derek
    Nobody here will tell you how to prevent a person surfing properly and getting off your site by disabling back or any other buttons
     
  3. Big-K

    Big-K

    Joined:
    Nov 22, 2003
    Messages:
    6,052
    Like he said, what reason would there be for that other than extra traffic that you didnt earn? Either way if a person gets annoyed enough with a website they will exit out of it.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/275426

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice