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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is curr page the last in history array? 2

Status
Not open for further replies.

contiw

Programmer
Joined
Jun 28, 2002
Messages
25
Location
US
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.
 
the history object does not store strings. the actual url for a history item is not accessible from js.


=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
That information is in HTTP headers sent to the Server by the User Agent (Browser). You need server side code to obtain it.

-pete
 
RichS and palbano,

document.referrer will tell you what page you came from (if any)


=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top