Click here to Skip to main content
16,012,061 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone
I need a coding to redirect another page not the previous page when browsers back button clicked...


Can anyone give me a coding for this in javascript......

Thanks and Regards
vivekx2
Posted
Comments
Ed Nutting 7-Mar-12 12:20pm    
Impossible, unfriendly to users and generally awful design - design it differently if you need to this.
Ed

1 solution

I'm not sure why you design in this way. but this may be helpful.
Use Response.Cache.SetNoStore(); or window.history.forward(1); but page redirection may be bit tricky...

you may refer this link http://www.4guysfromrolla.com/webtech/111500-1.shtml[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900