Embedded frame and back/forward/refresh.

V

Vince

Hi,

I have an embedded frame one of my pages. When the user
works on that page the frame changes content, but browser
back/forward/refresh buttons are linked to my main page
(that does not change). It is easy to right click on the
embedded frame to perform any of the correct
Back/Forward/Refresh functions, but most users have no
idea that it is there.

What I need is a set of buttons on the main page that
perform B/F/R functions to the embedded frame ( I can't
put direct links, this has to be a browser script
command ).

Thanks,
Vince.
 
J

Jim Buyens

-----Original Message-----
Hi,
Howdy.

I have an embedded frame one of my pages. When the user
works on that page the frame changes content, but browser
back/forward/refresh buttons are linked to my main page
(that does not change). It is easy to right click on the
embedded frame to perform any of the correct
Back/Forward/Refresh functions, but most users have no
idea that it is there.

What I need is a set of buttons on the main page that
perform B/F/R functions to the embedded frame ( I can't
put direct links, this has to be a browser script
command ).

You can try

<a href="javascript:history.back(1)">Back</a>

and

<a href="javascript:history.forward(1)">Forward</a>

but I'm not sure they'll behave any differently that the
browser's Back and Next buttons.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
G

Guest

Jim,

I am 99% sure it will work as the browser does, i.e. the
wrong way...
I was trying history.go() to refresh, and its also going
back to the start.

Vince.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top