...

View Full Version : Is current page the last in the history array?



contiw
07-05-2003, 03:35 AM
Need to know if the current page is the last in the history array. Theoretically "history[history.length-1] == window.location.href" should do it but
history[...],
history.current,
history.previous,
history.next,
return "undefined". Working with IE 6.0.
Is it a security problem? Scant references in the Internet.
What else can be done?

Thanks for helping.

FJbrian
07-05-2003, 06:11 AM
but it's not historic, it's present or current?
why not just make the line of code window.whatever. or document.whatever?

brothercake
07-05-2003, 04:14 PM
it's a security feature - you're not allowed to read the history in javacript; you can only set it, as in history.go()



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum