Forum Moderators: open

Message Too Old, No Replies

JavaScript back button for frames

I read another like this but i still need help!

         

alana1223

7:04 pm on Jul 10, 2003 (gmt 0)

10+ Year Member



I recently read a post about a back button within frames. I tried both methods given and can't get it to work correctly... this: <a href="#" target="stage" onClick="history.go(-1)">Back</a> works, but then it also opens the original framed page into a new window while sending that frame back to the last page! I'm still pretty new to the whole development thing so need some basic (read:layman's terms) answers...

Thanks!
~Alana

BlobFisk

10:15 am on Jul 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried removing the target from the example that you posted above?

alana1223

3:53 pm on Jul 11, 2003 (gmt 0)

10+ Year Member



I've tried replacing the target with the name of the frame I want to change, "stage" to "main".
~Alana

BlobFisk

3:59 pm on Jul 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you trying to create a link in a frame, that will go back to a page in the same frame?

You can hard code this by using the specific URL and target="_self", or try the history jabascript above with target="_self"...