By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

How to load an different frame using ONLOAD()

P: n/a
Hi All,

I am working on a web page with frames, "menuFrame" on the left and
"textFrame" on the right. When I load the menu on the left I would
like to load the text with a default page on the right. Is there some
kind of way to do this with an onload event in the menuFrame page?
mymenu.html
<body onload(window.load("mytext.html","textFrame"))>
<a href="mypres1.html" target="textFrame"> George Washington </a>
<br>
<a href="mypres33.html" target="textFrame"> George Bush </a>
<br>
Thanks in advance for your help.
Jake Allen

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"jake_allen_no_spam" <ja**********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi All,

I am working on a web page with frames, "menuFrame" on the left and
"textFrame" on the right. When I load the menu on the left I would
like to load the text with a default page on the right. Is there some
kind of way to do this with an onload event in the menuFrame page?
mymenu.html
<body onload(window.load("mytext.html","textFrame"))>


<body onload="top.frames['textFrame'].location.href='mytext.html';">

(assuming -textFrame- is one frame down from the top)

<body onload="parent.frames['textFrame'].location.href='mytext.html';">

(assuming -textFrame- is a sibling of the current frame)

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.