EXAMPLE:
<html>
<script language = javascript>
document.write(“<table width=’750′ border=’5′> <tr><td height=’74’><script src=explain.js></script></tr></td></table>”);
</script>
</html>
There is only one statement in “explain.js” :
document.write(‘WHO CAN HELP ME’);
QUESTION:
the content in explain.js “WHO CAN HELP ME” doesn’t printed into the table. It just displayed after the table.
But if the page likes
<html>
<script language = javascript>
document.write(“<table width=’750′ border=’5′> <tr><td height=’74’><script language=javascript>document.write(‘WHO CAN HELP ME’);</script></tr></td></table>”);
</script>
</html>
it can run correctly.
I want to know wether the document.write() can load a .js file???
Thanx a lot !