Home > Affiliate Marketing, Online Marketing > Html Back Button

Html Back Button

March 27th, 2010

This article about html back button disabling is indeed a misnomer because you cannot technically get rid of an html back button. However, you can ensure that the html back button isn’t available or that it doesn’t lead back to the page it came from. Never the less, this should not be used too often because it traps the user. But knowing how to disable html back button can be useful sometimes.

There are three basic methods to disable the html back button. However, note that none of these methods are fool proof solutions, because if anyone wants to go back to where they came from, they can always right click the mouse button and select ‘back’. Also, the visitor can leave the domain easily by choosing one of the previous entries on the browser’s history. Anyway, what’s important is to understand that even if you disable the html back button, the user will find one way or the other to leave the page.

As mentioned, there are three methods to disable the html back button. They are explained individually below

1. New window – you must set up a link that opens new window and when you do so, ensure that you delete or rather deny the request for “toolbar”. This way the html back button will appear invisible. In this method the user must close the window to go to the previous page. However, using new windows with no tool bars all the time can be really annoying.
2. Open Close – this method also involves opening of a new window, but the parent window will shut once the new window is open. To achieve this, you can set up the new window code and set “self.close” command to close the parent window. Even though this effect works quite well with the browsers, this too can lead to annoyance because you will lose the parent window.
3. Frame Trap – this method even though not entirely infallible is a better way to disable html back button. To achieve this you must set up a two frame format that has one frame set up by 100% and the other, 0%. One frame would be totally hidden away. This method slows down the process and throws a page not found. Simply saying, once the visitor loads a page, the 100% frame page will load. If he wants to go back the 0% page will load which means he cannot see anything on it. So the browser will automatically redirect the visitor to the 100% page.

Related posts:

  1. Html Redirect
  2. Html Basics
  3. Eclipse Html Editor
  4. Html Color Charts
  5. Beginner Html
Comments are closed.

Powered by Yahoo! Answers