Click to See Complete Forum and Search --> : Is current page the last in the history array?


contiw
07-04-2003, 09:42 PM
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.

Khalid Ali
07-04-2003, 10:40 PM
browser security makes sure that you do not get the url from the history object.the onlything you can do is go to next previous and so on or access a page using array index and if there is apge it will show else nada....

contiw
07-04-2003, 11:40 PM
Thanks Kahalid. The idea was to implement a previous/next page in Javascript where, if you are at the last page of the history the rightArrow will show greyedout. Oh well, it will show as active and go nowhere when clicked. Cheers to you too.

Walter