Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

history.go question

Status
Not open for further replies.

GhostWolf

Programmer
Jun 27, 2003
290
US
Is there a way to determine how many entries there are in the History object?

What I've finally learned is that if the command is history.go(-2) and there aren't three entries in history, the browser stays where it is - and I'd like to circumvent this possibility.
 
You can use history.length to get the amount of entries in the history list including the current page.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thank you Phil. I hadn't found a reference to that property yet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top