
Solid, safe website tools.
Whatever your need, Will Bontrager builds powerful software solutions.
|
(Get Attention Ticker for your web site)
Hiding a Page From the 'Back' ButtonBy Will Bontrager When you want to let a browser click on a link, but remove the page with the link from the browser's history list (so the "back" button will skip the page), it can be done with some JavaScript. Here is the JavaScript: Put the JavaScript somewhere in the source code of your web page. In the HEAD area is good. Now, replace the href value of your anchor tags with a call to the JavaScript function To(), sending the old href value to the function. For example, if your link was: Then change it to: Now, when the link is clicked, the page with the link will disappear from the browser's history list. March 18, 2006 Please note: Articles on this website are presented "as is". However - If you have a question about a CGI script, HTML, CSS, PHP, or JavaScript
Rate this blog post.
No page reload! |
|
|
© 1998-2001 William and Mari Bontrager |
|