if I write within javascript tags, for a Netscape browser:
the browser writes into the shown html page (it duplicates the string):
Another problem is that if I try to write javascript code like this:
Netscape browser doesn't write it into the document, whereas Explorer does.
Any idea?
Code:
document.writeln("<layer id='menu1' style='position:relative'>");
document.writeln("<IMG id='imCat1' src='closed.gif' border='0'>Categoría 1");
the browser writes into the shown html page (it duplicates the string):
Code:
<LAYER id='menu1' style='position:relative'><LAYER id='menu1' Ttyle='position:relative'>
<IMG id='imCat1' src='closed.gif' border='0'>Categoría 1
Another problem is that if I try to write javascript code like this:
Code:
document.writeln("<"+"SCRIPT LANGUAGE='JavaScript'"+">");
document.writeln("<!--");
document.writeln("function getRef(id)");
document.writeln("{");
document.writeln(" return document.layers[id];");
document.writeln("}");
document.writeln("// End -->");
document.writeln("</"+"SCRIPT"+">");
Netscape browser doesn't write it into the document, whereas Explorer does.
Any idea?