Forum Moderators: open

Message Too Old, No Replies

Back button and frams.

         

m_m_h

6:00 pm on Nov 4, 2005 (gmt 0)



Alright, so I've got a site up with frames and I want to put a back button (text preferably) right on the site. Best case would be to have it in the same frame as the rest of my nav stuff. Right now the code I'm trying to make work is the standard <a href="#" onClick="history.go(-1)">Back</a> and it just doesn't want to work for me. I found this [webmasterworld.com] topic, but I can't seem to get any of those tips to work. Anybody know what I can do?

Fotiman

6:33 pm on Nov 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Did you try this:

<a href="#" onClick="parent.history.go(-1)">Back</a>

or maybe this:

<a href="#" onClick="top.history.go(-1)">Back</a>

or maybe this:

<a href="#" onClick="top.frames['nameofotherframe'].history.go(-1)">Back</a>

I'm just guessing.