Welcome visitor
* Login
* Register
It is currently March 26th, 2019, 6:35 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Iframe links should open on my main window
PostPosted: December 2nd, 2009, 5:11 am 

Posts: 15
Hi, Im using an iframe on my window with some links inside of it. When you click the links they open on the same iframe, how can I open them on the main window and keep the iframe the same?


Top
 Profile  
 
  Re: Iframe links should open on my main window
PostPosted: December 2nd, 2009, 8:48 am 
User avatar

Posts: 112
To open the link on the main window you need to add the target: top attribute to the link:
<a href="http://www.scriptingok.com" target="_top">scriptingok</a>



But this will make disappear your iframe (unless the iframe is also included in the new loaded document). I think you need another iframe for the main content and this can help so the iframe doesnt need to be loaded each time:
<!--for the link on the iframe-->
<a href="http://www.scriptingok.com" target="main">scriptingok</a>


<!--for the now needed main iframe-->
<iframe name="main"></iframe>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


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 post attachments in this forum

Search for:
Jump to:  
cron