I'm trying to simplify my problem, and I don't think it could be simpler than this:
<html>
<frameset rows = "50%,50%" name="proof">
<frame src="one.html" name="one">
<frame src="two.html" name="two">
</frameset>
</html>
<html>
<body>
<H1>Frame 1</H1>
</body>
</html>
<html>
<body>
<H1>Frame 2</H1>
</body>
</html>
This is what I see when I load the frameset:
If I edit the file with "Frame 2" this way:
<html>
<body>
<H1>Frame 2</H1>
<script>
alert (top.two.name);
</script>
</body>
</html>
and I reload the frameset, I see this:
Until now, everything works as expected. But if I edit the file with "Frame 2" this other way:
<html>
<body>
<H1>Frame 2</H1>
<script>
alert (top.one.name);
</script>
</body>
</html>
no alert appears, despite having done exactly what everyone on the Internet is suggesting. The same happens with the other frame: it can display its own name, but not the other's (or the frameset's).
Why is that? How can the two frames communicate?