Page 1 of 1

</scr' + 'ipt>

Posted: Sun Aug 01, 2004 11:42 am
by anjanesh
Hi
I've come across many times. Why do people do this :

Code: Select all

document.write(' language="Javascript1.2"></scr' + 'ipt>');
instead of just

Code: Select all

document.write(' language="Javascript1.2"></script>');

Posted: Sun Aug 01, 2004 11:42 am
by feyd
because the latter will stop execution of the script.