Computing.Net > Forums > Web Development > one hyperlink for two frames

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

one hyperlink for two frames

Reply to Message Icon

Name: payman
Date: June 28, 2007 at 02:53:49 Pacific
OS: Win XP
CPU/Ram: P4 1GB
Product: Dell
Comment:

Hi all,
I have a web page in frontpage designed in three frames. How can I setup a hyperlink in the first frame in order to change both other frames to two different pages.
I can change only one of the frames to another page selecting target frame and choose the page but not for two frames at the same time.
many thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: July 1, 2007 at 02:47:52 Pacific
Reply:

You'll need to use javascript.

In your nagivation frame, add this to the header:

<script type="text/javascript">
function goSomewhere(dest) {
parent.frame2.location = dest;
parent.frame3.location = dest;
}
</script>

Then, form your links like this:
< a href="#" onClick="goSomewhere('http://www.google.com')">

Only replace frame2 and frame3 with the name of your frames, and http://www.google.com with the location in question.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: one hyperlink for two frames

Content not lining up in frames www.computing.net/answers/webdevel/content-not-lining-up-in-frames/1059.html

Scroll bar issues www.computing.net/answers/webdevel/scroll-bar-issues/181.html

Recognize User (Enter Email Once) www.computing.net/answers/webdevel/recognize-user-enter-email-once/1650.html