2

Possible Duplicate:
Why split the <script> tag when writing it with document.write()?

I have only shallow knowledge of JavaScript, and was wondering why I often see the following type of code in web pages:

document.write('<scr'+'ipt type="text/javascript" src="'+bub_url+'"><'+'/script>');

What not just write...

document.write('<script type="text/javascript" src="'+bub_url+'"></script>');

Thank you.

Community
  • 1
  • 1
Gulbahar
  • 5,343
  • 20
  • 70
  • 93
  • 1
    Please see this link: http://stackoverflow.com/questions/236073/why-split-the-script-tag-when-writing-it-with-document-write – Derreck Dean Mar 14 '12 at 14:13

0 Answers0