Click to See Complete Forum and Search --> : history


dmarinic
02-10-2003, 11:55 PM
How can one check if there is anything in window.history array?

Content of my page is based on this info, so if it's a new window the page will contain say "Close Window" button and otherwise will show "Go Back" button.

pyro
02-11-2003, 12:16 AM
This is off the top of my head so...

try a command like this:

if (history.length != "0")
{
//your code here if there is a history
}
else
{
//your code here if there is no history
}