HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Link Opening In Two Iframes?
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
DarkAbyssDL



Joined: 04 Mar 2005
Posts: 1

PostPosted: Fri Mar 04, 2005 6:35 pm     Link Opening In Two Iframes? Reply with quote

I Was Wondering If 1 Link Could Open Up Two Different Sources Of Information In Two Different Iframes?
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Fri Mar 04, 2005 8:09 pm     Reply with quote

yes, you would need to use javascript.

You need to name your frames to reference them in the link.

Code:
<p><a href="#" onclick="parent.frames['if1'].location='http://www.google.com'; parent.frames['if2'].location='http://search.msn.com';">Click Me</a></p>
<p><iframe style="width:600px;height:400px;" id="if1"></iframe></p>
<p><iframe style="width:600px;height:400px;" id="if2"></iframe></p>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial