frames and javascript history

Busy's picture

He has: 6,151 posts

Joined: May 2001

Hi,

here is my frame layout

<?php
---------------
frame a        |
----------------
frame  frame  |
b       |   c     |
-----------------
?>
I know it's frameset but the whole word wouldn't fit in my high tech picture Wink

and the code:

go back a page

I want to put the code in frame a but want frame c to actually go back (as if the link was in frame c)
I haven't played with javascript for a while, I remember it can be done and remember having to use document and window but can't remember the complete thing. So instead of burning out my limited brain cells thought I'd ask you guys/gals.

Don't worry it's not for a site, its just something personal am playing with.

Thanks

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Try window.framename.history.go(-1) ?

Busy's picture

He has: 6,151 posts

Joined: May 2001

Thanks Abhi, works most of the time, although seems to not work when values have been sent to a page within a page. Works well enough for what I need, cheers

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.