I have got an html page which tries to write another page in a different window:
<html>
<body>
<script language="javascript">
var vent=eval("top.arbol.document"
;
function dibuja_arbol() {
vent.clear();
vent.writeln("<html><head>"
;
vent.writeln("<title>"
;
vent.writeln("alta de TCI"
;
vent.writeln("</title>"
;
vent.writeln("<script language='javascript'>"
;
vent.writeln("</script>"
;
vent.writeln("</head><body>"
;
.........................
vent.writeln("</body></html>"
;
vent.close();
}
dibuja_arbol();
</script>
</body>
</html>
The part: "vent.writeln("<script language='javascript'>"
;
vent.writeln("</script>"
;" is not translated correctly by the browser. It considers that the strings are not literals, but part of the main HTML page.
if I eliminate this part, everything goes ok. Any idea?
<html>
<body>
<script language="javascript">
var vent=eval("top.arbol.document"

function dibuja_arbol() {
vent.clear();
vent.writeln("<html><head>"

vent.writeln("<title>"

vent.writeln("alta de TCI"

vent.writeln("</title>"

vent.writeln("<script language='javascript'>"

vent.writeln("</script>"

vent.writeln("</head><body>"

.........................
vent.writeln("</body></html>"

vent.close();
}
dibuja_arbol();
</script>
</body>
</html>
The part: "vent.writeln("<script language='javascript'>"

vent.writeln("</script>"

if I eliminate this part, everything goes ok. Any idea?