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!

javascript:self.back() doesn't work in IE

Status
Not open for further replies.

kevink

Programmer
Nov 23, 1999
53
IE
For some reason I IE (5+)&nbsp;&nbsp;keeps giveing me an error everytime I have javascript:self.back() as a hyperlink.&nbsp;&nbsp;It works fine in Netscape. (javascript:self.close or print work fine in both).<br><br>Does IE support javascript:self.back() or is there something else I must do first?<br><br>TIA,<br><br>Kevin
 
self --&gt; this<br>this.back() should work fine in ie<br>if it doesn't, try : this.document.location.history.go(-1)
 
iza - <br>you wouldnt need to add the this in front of the <br>document.location.history.go(-1).<br><br>you wouldn't even need the document<br><br>so really, you could just do this:<br>location.history.go(-1). <p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top