How to load an different frame using ONLOAD()

G

Guest

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
 
G

Grant Wagner

jake_allen_no_spam said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top