Hej,
Jag har problem med följande kod:
<HTML>
<HEAD>
<TITLE>Första fönstret</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
mywin = open("","_blank","Toolbar=yes,location=yes,status=yes,scrollbars=no,menubar=yes,directories=no,resizable=yes,screenX=0,screenY=0");
mywin.window.moveTo(0,0);
mywin.resizeTo(screen.availWidth,screen.availHeight);
mywin.document.writeln(" <HTML> " );
mywin.document.writeln(" <HEAD> " );
mywin.document.writeln(" <TITLE>andra fönstret</TITLE> " );
mywin.document.writeln(" </HEAD> " );
mywin.document.writeln(" <BODY BGCOLOR = \"silver\" >");
mywin.document.writeln("</APPLET>");
mywin.document.writeln("</NOEMBED></EMBED></OBJECT>");
mywin.document.writeln("</BODY>");
mywin.document.writeln("<script language=\"javascript\" >");
mywin.document.writeln("</script>");
mywin.document.writeln("Tjohej");
mywin.document.writeln("</HTML>");
</SCRIPT>
</BODY>
</HTML>
Tar jag bort raderna
mywin.document.writeln("<script language=\"javascript\" >");
mywin.document.writeln("</script>");
så fungerar koden... annars får jag (fel unterminated string )konstant.
Vad beror detta på?
/Catalina