Welcome visitor
* Login
* Register
It is currently January 22nd, 2019, 8:57 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
  target to frame on a window - 2 targets in one
PostPosted: December 26th, 2009, 1:01 am 

Posts: 33
Hi, I'm thinking how could I open a link in a new window, the new window will be a frameset with 3 frames and the link should open inside one frame. Can I do this? Right now I can only use the target attribute to set the new page or the name of the frame, I don't know how to do it all at the same time. Thanks!


Top
 Profile  
 
  Re: target to frame on a window - 2 targets in one
PostPosted: December 27th, 2009, 1:13 am 

Posts: 55
<a href="#" onclick="cw(); fnw();">ScrinptingOk!</a>
<script type="text/javascript">
function cw()
{
nw=window.open('ltr.htm','frames');
nw.window.onload=fnw;
}
function fnw()
{
nw.document.getElementById('frameID').src='http://www.scriptingok.com';
}
</script>

As you can see this works for one url only, you may wish to create an array with all the possible URLs.


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