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

Java script / history question.

Status
Not open for further replies.

bitbrain

Programmer
Jun 10, 1999
159
US
Hi - I think this is a simple question.<br>
<br>
I want to interrogate the URLs of previously visited web pages. The following lines return &quot;Undefined&quot; in IE4.0. Any ideas?<br>
<br>
document.write (history.current);<br>
document.write (window.history[0]);<br>
<br>
Thanks in advance!
 
try <span style=color:red>window.history[-1]</span> I think that should turn up some better results for you. <p>-Robherc<br><a href=mailto:robherc@netzero.net>robherc@netzero.net</a><br><a href= > </a><br>*nix installation & program collector/reseller. Contact me if you think you've got one that I don't :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top