[Javascript] Delete one history item

Peter-Paul Koch gassinaumasis at hotmail.com
Fri Apr 13 14:24:44 CDT 2001




>	Hi, I have a page that first detects what browser version you have, then
>refreshes to a new page.  I would like to skip my browser detection page 
>when the user hits the browser Back button.

Use the replace method in the first place. It refreshes to a new page which 
is put *in place of* the old page in the history and your problem is solved.

if (some browser detect)
{
  location.replace('newpage.html')
}
else if (some other browser detect)
{
  location.replace('othernewpage.html')
}

ppk

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the Javascript mailing list