Are there any guru javascripters who can tell me why this does not work (it fails when it hits the write method). Thanks.
<layer name="mylayer">
some text
</layer>
<script>
document.layers["mylayer"].document.open();
document.layers["mylayer"].document.write("alternate text"
document.layers["mylayer"].document.close();
</script>
<layer name="mylayer">
some text
</layer>
<script>
document.layers["mylayer"].document.open();
document.layers["mylayer"].document.write("alternate text"
document.layers["mylayer"].document.close();
</script>