PDA

View Full Version : document.writeln("</SCRIPT>");



dcorbett
Nov 5th, 2002, 02:24 PM
This is probably a well-known problem, but how do I write javascript into a page? I've tried this:

document.writeln("<SCRIPT LANGUAGE = JavaScript>");
document.writeln("</SCRIPT>");

but it seems to interpret the last line as </SCRIPT> and stops the current script!

Thanks!

aEr_aEr
Nov 5th, 2002, 02:33 PM
i do this
document.writeln("</"+"script>");

dcorbett
Nov 6th, 2002, 10:50 AM
Thanks! I wish all problems were that obvious!

Borgtex
Nov 6th, 2002, 11:51 AM
or document.writeln('<\/script>')