Hi,
This script seems to work but it gives me an error too:
First I wrote a two columns framed document:
<frameset cols="30%,70%">
<frame src="page1.html" name="foody">
<frame src="page2.html" name="goody">
</frameset>
page1.html:
<body>
<script language="JavaScript">
function testing()
{
var x = "this is page1!";
alert(x);
}
</script>
<script language="JavaScript">
testing();
</script>
</body>
Page2:
<body>
<script language="JavaScript">
parent.foody.testing();
</script>
</body>
It work but I receive an error: "parent.foody.testing is not a function".
Do you know why?
Many thanks
This script seems to work but it gives me an error too:
First I wrote a two columns framed document:
<frameset cols="30%,70%">
<frame src="page1.html" name="foody">
<frame src="page2.html" name="goody">
</frameset>
page1.html:
<body>
<script language="JavaScript">
function testing()
{
var x = "this is page1!";
alert(x);
}
</script>
<script language="JavaScript">
testing();
</script>
</body>
Page2:
<body>
<script language="JavaScript">
parent.foody.testing();
</script>
</body>
It work but I receive an error: "parent.foody.testing is not a function".
Do you know why?
Many thanks