PDA

View Full Version : Simple javascript - back() in an anchor


Subjective Effe
07-12-2004, 01:43 PM
How do you do it in IE? I can work it in FF and Opera but IE?

I've used a href ="#" onclick="javascript:back()".

In truth I dislike using javascript and coul hardcode all links. But still . . .

¥åßßå
07-12-2004, 01:46 PM
Try:-

window.history.back();

;)

Subjective Effe
07-12-2004, 02:38 PM
Nice. Thanks. And to think I used to be the js daddy. . .

¥åßßå
07-12-2004, 02:39 PM
Lol, more than welcome