I need to write new HTML on a frame. However everytime document.write is called from frame, the whole page reloads (not just that frame).
BTW, index.htm is just composed of text.
main.htm
<script>
function d()
{
document.write("hello");
}
</script>
<frameset rows="80%,*" framespacing=0 border=0 frameborder=0>
<frameset cols="30%,*" framespacing=0 border=0 frameborder=0>
<frame src="index.htm" name="stat" noresize>
<frameset rows="40%,*" framespacing=0 border=0 frameborder=0>
<frame src="index.htm" name="action" noresize>
<frame src="map.php" name="map" noresize>
</frameset>
</frameset>
<frame src="index.htm" name="mesg" noresize>
</frameset>
snip from map.php
echo "
<script>
parent.d();
</script>";
Also, how can I use variables from main.htm in the "action" frame?
thanks