PDA

View Full Version : Target Frame in JavaScript


AntYau
04-15-2004, 06:04 AM
Hi i've got small problem. I've got it so that it auto loads on Body Load but i want to specify the frame it goes in. At the moment it just covers the whole page but just want it to go into frame "top1". Heres code below.

<script language="javascript">
function AutoLoad(){
top.location.href = '../Top/toprighthome.htm' ;
}
</script>


</head>

<body onload="AutoLoad()">

So i just want to specifiy which frame the page above goes.

Can anyone help???

Thanks

p.s. I'm a newbie :)

agent002
04-15-2004, 08:33 AM
You will need to load the frameset page with a query string to tell it what to show in which frame. I have made a JavaScript solution for this; link (http://www.htmlforums.com/showthread.php?postid=233616#post233616). :)

coothead
04-15-2004, 10:29 AM
 
 
 
 
 
      Hi there Jere,
 
      It's great to see you using the abbreviated.....


            'link' (http://www.htmlforums.com/showthread.php?postid=233616#post233616)

agent002
04-15-2004, 12:43 PM
Is this about the dotcom thingy?

coothead
04-15-2004, 02:25 PM
Originally posted by agent002
is it somehow popular to leave off the domain name extension
and cause confusion, as I've seen you do this lately?

          It's just that I am delighted to see you have decided to
          'cause a little confusion' too :D

agent002
04-15-2004, 02:28 PM
What can I say, but... How rare