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

History.back doesn't work with IE 6.0

Status
Not open for further replies.

sweta

Programmer
Apr 1, 2003
35
IN
Hi there,

The follwing piece of code works well with IE 5.0 or 4.0..but it doesn't work with IE 6.0.

<a href='' onclick=history.go(-1)>Back to the previous page</a>

none of the follwing either works..
window.history.back
history.back

or any equivalent code.

Please try out with IE 5.0 and 6.0 both..

Let me know if there is an alternative

Thanks,
Sweta

 
Have you added the end quotes and semicolon at the end?

Code:
<a href=&quot;onclick=history.go(-1);&quot;>Back to the previous page</a>

I noticed you had typed TWO single quotes sequentially in your example. Use the double quotes key (while depressing Shift) if possible.
 
you can also use <a href=&quot;vbscript: history.back&quot;>Go Back</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top