We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Disable back and next button of web Browser

Thread ID:

Created:

Updated:

Platform:

Replies:

44128 May 15,2006 07:19 AM May 17,2006 04:01 PM ASP.NET Web Forms (Classic) 1
loading
Tags: FAQ
vaibhav
Asked On May 15, 2006 07:19 AM

I Like to disable back Button if i kill the session please send the code

maruthi
Replied On May 17, 2006 04:01 PM

call the javascript function ie call the javascript function from the body tag hope this solves u r problem function disableBack() { nextPage = new String(history.forward()); if (nextPage == "undefined") { //this has been done thru submit button or a hyperlink } else { location.rel='nofollow' href = window.history.forward(); // when the back button or the backspace is hit } }

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;