faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

24 of 29 people (83%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How can I get a browser to not put the page the user is on into the History?

Apr 20th, 2000 04:44
Martin Honnen, Jon Pettit,


When you load the next page you use
  location.replace('newPage.html')
which replaces the current page in the history list.
You can do that in links as follows:
  <A HREF="whatever.html"
     ONCLICK="location.replace(this.href); return false;"
  >