About Me

My photo
Nadiad, Gujarat, India
Hi Friends I am Vipul Soni, an Innovative web Designer & Developer with Excellent skills who thrives on challenges and is passionate for all areas of web Design & Development.

Sunday, 30 January 2011

How To Disable Back Button of Web Browser

Step:- Use following script in Head Section


<script type = "text/javascript" >
function disableBackButton()
{
window.history.forward();
}
setTimeout("disableBackButton()", 0);
</script>



Step 2:- Now you can use it on the in website .
just use this code as below in <body> tag

<body onload="disableBackButton()">

1 comments:

Sur said...

it works

Post a Comment

There was an error in this gadget