WindInMyHair
09-27-2002, 08:45 PM
Hey.
When I run this code I get an error that says "document.content" is null or not an object".
This page loads 4 frames. (banner, footer, menu and content). I want to set the content frame to a different page.
When it executes the setContent function it produces the error.
Can someone tell me why? (thanks in advance). I am sure that I am doing something dumb, but don't know what it is.
<html>
<head>
<script>
function setContent(name) {
document.content.location.href = name;
}
self.onload = setContent('page1.html');
</script>
</head>
<frameset rows="43,*,15">
<frame src="banner.html" name="banner" noresize>
<frameset cols="20%,*">
<frame src="menu.html" name="menu">
<frame src="welcome.html" name="content" >
</frameset>
<frame src="footer.html" name="footer" noresize>
</frameset>
</html>
Regards,
Greener than a mountain meadow (in springtime).
When I run this code I get an error that says "document.content" is null or not an object".
This page loads 4 frames. (banner, footer, menu and content). I want to set the content frame to a different page.
When it executes the setContent function it produces the error.
Can someone tell me why? (thanks in advance). I am sure that I am doing something dumb, but don't know what it is.
<html>
<head>
<script>
function setContent(name) {
document.content.location.href = name;
}
self.onload = setContent('page1.html');
</script>
</head>
<frameset rows="43,*,15">
<frame src="banner.html" name="banner" noresize>
<frameset cols="20%,*">
<frame src="menu.html" name="menu">
<frame src="welcome.html" name="content" >
</frameset>
<frame src="footer.html" name="footer" noresize>
</frameset>
</html>
Regards,
Greener than a mountain meadow (in springtime).