Disable back button in internet explorer
-
What is the code to disable the back button in internet explorer? Some sites seem to trick it into thinking it's a refresh button. Survey sites like intelliquest.com have done it successfully
-
Answer:
Dear shaneskillen, The trick is to use the history.forward() JavaScript directive in the head section of each page. Thus, when the user attempts to back up within your site, the script will bounce him forward each time. This method should only be used to guide the user through a linear interaction such as product purchase or survey completion, and not as a gratuitous way of forcing the user to stay on your site. In any case, the user can always leave by manually entering a new URL in the address bar. I have prepared the following page for you as a simple demonstration. Bounce Forward: Demonstration http://plg.uwaterloo.ca/~mlaszlo/answers/bounceforward/index.html The first time you visit this page, you will be able to use the back button to return to the previous site you visited. This is correct and desirable behavior. But as soon as you choose one of "foo!" and "bar!", which represents the beginning of a linear user interaction such as a purchase or survey, the back button is effectively disabled and you are forced to use the links offered on each page to navigate within my site. This effect is accomplished by including the following text in the <head> portion of each page. <script> history.forward(); </script> Remember, users will welcome this feature only if you employ it as a navigational help rather than as a hindrance. It has been a pleasure to address this question on your behalf. Regards, leapinglizard
shaneskillen-ga at Google Answers Visit the source
Related Q & A:
- How to Open Pdf file in Internet Explorer?Best solution by Stack Overflow
- How to add a MIME handler to Firefox and Internet Explorer from an installer?Best solution by Stack Overflow
- How do I switch from Internet explorer 8 back to Internet explorer 7?Best solution by Yahoo! Answers
- How do you get "tabs" back on your internet explorer page?
- How do i get my tool bar back on internet explorer at the top?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.