F
Fre
Hi, i made script with an alert window that should show me the location of
the page in frame CONTENT (..../artikels.aspx).
But it don't work, i got an error: 'top.frames.1.frames' is empty or nog an
object.
When i try with: alert(top.location)
i get the location of my index page, that works, but when i use the frame
arrays nothing works
Here is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<TITLE>My Title</TITLE>
<script>
alert(top.frames[1].frames[1].frames[0].location);
</script>
</head>
<frameset cols="*,765,*" frameborder="no" border="0" framespacing="0">
<frame name="left" noresize src="bgframe.htm">
<frameset rows="111,*" cols="*" frameborder="NO" border="0"
framespacing="0">
<frame name="head" src="header.htm" noresize scrolling="no">
<frameset cols="*,200" frameborder="NO" border="0" framespacing="0">
<frame name="content" src="artikels.aspx" scrolling="yes">
<frame name="menu" src="menu.aspx" noresize scrolling="no">
</frameset>
</frameset>
<frame name="right" noresize src="bgframe.htm">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</html>
Thx in advance!
Frederik
the page in frame CONTENT (..../artikels.aspx).
But it don't work, i got an error: 'top.frames.1.frames' is empty or nog an
object.
When i try with: alert(top.location)
i get the location of my index page, that works, but when i use the frame
arrays nothing works
Here is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<TITLE>My Title</TITLE>
<script>
alert(top.frames[1].frames[1].frames[0].location);
</script>
</head>
<frameset cols="*,765,*" frameborder="no" border="0" framespacing="0">
<frame name="left" noresize src="bgframe.htm">
<frameset rows="111,*" cols="*" frameborder="NO" border="0"
framespacing="0">
<frame name="head" src="header.htm" noresize scrolling="no">
<frameset cols="*,200" frameborder="NO" border="0" framespacing="0">
<frame name="content" src="artikels.aspx" scrolling="yes">
<frame name="menu" src="menu.aspx" noresize scrolling="no">
</frameset>
</frameset>
<frame name="right" noresize src="bgframe.htm">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</html>
Thx in advance!
Frederik