Home: Other Programming Languages: Javascript:
Is current page the last in the history array?



contiw
New User

Jul 4, 2003, 8:18 PM


Views: 40018
Is current page the last in the history array?

Need to know if the current page is the last in the history array.

Thoretically "history[history.length-1]==window.location.href" should do it but

history[nnn], and also
history.current,
history.next,
history.previous

return "undefined".

Working with IE6. Info on this subject is scant on the Internet. Is there a workaround?

Thanks for helping.