Click to See Complete Forum and Search --> : smple frame question


AntonioMainenti
03-19-2003, 09:22 PM
Ok so the main page has the following code:

<frameset rows="60,*" frameborder="0">
<frame src="controls.htm" name="controls">
<frame src="main.htm" name="main">
</frameset>

and controls.html has something like:

function doStuff()
{

parent.main.document.write("whatever");

}

<body onLoad="doStuff()">

In the previewer of my HTML editor it works fine, but in IE it says parent.main.document is null or not an object, so I checked thau!'s JavaScript tutorial and that's exactly what it says to do, so I dunno.

(Oh yes and I tried top.main, and that didn't work either)

Thanks, Alan.

khalidali63
03-19-2003, 09:26 PM
it could be that the main is not loaded at the time when this statement is executed..???

Khalid