T
Tim Streater
I have this arrangement of frames:
<html><head><script type="text/javascript"></script></head>
<frameset rows="100,*">
<frameset cols="135,*,165">
<frame name="logo" src="some.html" scrolling="No">
<frame name="title" src="someother.html" scrolling="No">
<frame name="nav" src="yetmore.html" scrolling="No">
</frameset>
<frameset>
<frame name="mainpage" scrolling="No">
</frameset>
</frameset>
</html>
I want to load some html into the frame "mainpage". How do I refer to
this frame from within my javascript up there in the header? I've tried
a myriad of things like:
<script type="text/javascript">
window.frames["mainpage"].location.href = "evenmore.html";
</script>
but it always says "object needed". I can't quite see how to string
together the object reference I need and would appreciate a pointer.
Thanks,
-- tim
<html><head><script type="text/javascript"></script></head>
<frameset rows="100,*">
<frameset cols="135,*,165">
<frame name="logo" src="some.html" scrolling="No">
<frame name="title" src="someother.html" scrolling="No">
<frame name="nav" src="yetmore.html" scrolling="No">
</frameset>
<frameset>
<frame name="mainpage" scrolling="No">
</frameset>
</frameset>
</html>
I want to load some html into the frame "mainpage". How do I refer to
this frame from within my javascript up there in the header? I've tried
a myriad of things like:
<script type="text/javascript">
window.frames["mainpage"].location.href = "evenmore.html";
</script>
but it always says "object needed". I can't quite see how to string
together the object reference I need and would appreciate a pointer.
Thanks,
-- tim