Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Apr 26, 2000

Changing Two Frames With One Click

When you create a Web site that includes frames, you can easily use a hyperlink in one frame to change the contents of a second frame. But you may frequently want to change two frames with one click.

To do so, add the following parameter to the HTML that defines the link:

 
onClick="parent.frame2.location.href="target2.htm" 

The complete HTML for the link would then look something like this:

  
<a href="target1.htm" target="frame1" 
onClick="parent.frame2.location.href="target2.htm">Click Here</a>
Manoj K.
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date