</scr' + 'ipt>

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

</scr' + 'ipt>

Post 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>');
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

because the latter will stop execution of the script.
Post Reply