external.js" is the name of (or the full path
What the "
This includes the line "
which generates additional HTML. The browser will then parse the newly generated
The reason for having "
</scr' + 'ipt>" instead of "
</script>" in the
document.write in the script is simply that IE 7 would interpret "
the end of the script, even though it is enclosed in quotes and is part of a
string. Breaking "
</script>" into two parts gets round this
- The behaviour is quite different to that of the C & C++ language's "#include".
The contents of this article have been tested with:
- Internet Explorer 6
- Internet Explorer 7