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()
setTimeout("disableBackButton()", 0);

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

<body onload="disableBackButton()">


Sur said...

it works

Post a Comment