PDA

View Full Version : document.write('</SCR'); document.write('IPT>');


demae
11-01-2003, 02:34 PM
Why do the adcodes that advertising networks give out always do this:

document.write('</SCR');
document.write('IPT>');

instead of this:

document.write('</SCRIPT>');

georgec
11-01-2003, 04:32 PM
Hi:
It's because if you were to use:

document.write('</SCRIPT>');

JavaScript in many browsers would generate an error, thinking the actual script has ended, when in fact you're merely ending the dynamically generated script.

I always use:

document.write('<\/SCRIPT>');

which is a lot easier.

Click Here!