Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

waiting for frame to load in newly opened page

Status
Not open for further replies.

mcowen

Programmer
Oct 21, 2001
134
GB
I am opening a new window and then trying to send the main frame to another URL. The problem I have is that the frame hasnt loaded properly by the time I try to change its location. I know this because I have put an alert in that delays the change in URL and it then works. How can I test to make sure it is ready? I tried caseSummaryWindow.document.mainFrame.readyState == "complete" but this is wrong.

Matt
 
Okay let's see if I catch your drift:

You are opening a new window, containing frames.
You want the main frame to change to another url when the framespage is loaded.

Why don't you use the onLoad () event in the original html file in the main frame?

p.e: <body onLoad=&quot;javascript:self.location='newpage.html'&quot;>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top