Disable Browser Back Button

<html xmlns=”http://www.w3.org/1999/xhtml&#8221; >

<title>Untitled Page</title>
<script type = “text/javascript” >
function disableBackButton()
{
window.history.forward();
}
setTimeout(“disableBackButton()”, 0);
</script>
</head>
<body onunload=”disableBackButton()” onload=”disableBackButton()”>
<form id=”form1″ >
<div>
This is First page <br />
<br />
Go to Second page
<br />
<br />
<a href=”aaa.php”> Link </a>
</form>
</body>
</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: