Disbale browser back button

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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
 

dvk01

Derek
Retired Moderator Retired Malware Specialist
Joined
Dec 14, 2002
Messages
56,452
Nobody here will tell you how to prevent a person surfing properly and getting off your site by disabling back or any other buttons
 
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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Members online

Top