|
|
Q244 How do I tell the browser not to save the current URL in the history folder?
irt.org | Knowledge Base | JavaScript | History | Q244 [ previous next ] Q244 How do I tell the browser not to save the current URL in the history folder?You cannot tell the browser to not store the URL in the history. What you can do though, for those browsers that support this, is to overwrite the current URL in the history when moving onto another page. Normal links look like:
This can be done using JavaScript:
This can be enhanced to replace the current URL in the history:
The check for the image object is the easiest way to detect if the browser supports the location objects replace()method. Note: in Opera replace() will work, but only with absolute URL's. Feedback on 'Q244 How do I tell the browser not to save the current URL in the history folder?' |
-- div -->
|