Powered By Blogger

Search

Friday, March 14, 2008

Browser Back Button Using Javascript

Disable Browser Back Button Using Javascript

This javascript for disable Browser Back button.....

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

Create Own Back Button

create your own Back button

<html>
<body>
<script language="JavaScript">
function function1()
{
history.back(1);
}
</script>
<input type="button" value="Go back" onclick="function1();">
</body>
</html>

Example





Some Other Links :

http://quickstarts.asp.net/Futures/ajax/doc/history.aspx

No comments: