C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Block Back button of browser


Posted Date: 18 Jun 2008    Resource Type: Tips    Category: Web Development
Author: Subodh kumar PrajapatiMember Level: Gold    
Rating: Points: 4



Some times we might need to block the back button of browser. For example, this is required whenever your session expires that leads back to the login page. At this time you might want to block the back button. Because at that condition user can use back button.

So , the following lines of code can be written in body tag of html for block the back button of browser:

Use this on Body tab:


<Body onunload="Javascript:window.histroy.forword(0);">


This single line of code can block your back button of browser.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Blocking browser's back button  .  Blocking back button in browser  .  Block back button in browser  .  Block back button  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Block the Right Clicking on page
Previous Resource: Fill the value in session through Javascript
Return to Discussion Resource Index
Post New Resource
Category: Web Development


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use