473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to load an different frame using ONLOAD()

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
1 1582
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jan Doggen | last post by:
Hello, I'm using the 'standard' trick to force the load order of my frames: <HTML> <HEAD> <TITLE>Frametest master page</TITLE> <SCRIPT Language="Javascript"> function refreshFrame() {...
2
by: torext | last post by:
I have 3 frame (not frame set) and I want to forse frame1 (where I define language for user) to be load first, before any other frames. And if possible reload main page. How should I do it from...
6
by: sylcheung | last post by:
Hi, How can I be notified when the document load is complet in JavaScript? I am referring to the whold document load is complete, mean all images/external files/frame/iframes have been loaded. ...
2
by: gm04030276 | last post by:
Hey all, Im trying to create a thing that will essentially allow me to use tabbed browsing within a website using php sessions to store the different opened pages. To do this, im using two frames,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.