Sunday, January 11, 2015

Disabling browser's back button

4:06 AM - By azeheruddin khan 0

In this article, I will show you how to prevent user from navigating to previous page using back button of the browser.

Need to place this JavaScript code in the head section of the page. If you are using ASP.Net then place this code in master page.

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

About the Author

I am Azeheruddin Khan having more than 6 year experience in c#, Asp.net and ms sql.My work comprise of medium and enterprise level projects using asp.net and other Microsoft .net technologies. Please feel free to contact me for any queries via posting comments on my blog,i will try to reply as early as possible. Follow me @fresher2programmer
View all posts by admin →

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

adsense

© 2014 Fresher2Programmer. WP Theme-junkie converted by Bloggertheme9
Powered by Blogger.
back to top