W
Water Cooler v2
Questions:
1. Can there be more than a single script block in a given HEAD tag?
2. Can there be more than a single script block in a given BODY tag?
To test, I tried the following code. None of the script gets executed.
Can someone please give me a direction as to what I may be missing?
Thanks.
<!--The purpose of this program will be to:
1. Use an external script;
2. To use more than one SCRIPT tag inside a HEAD tag; and
3. To use more than one SCRIPT tag inside a BODY tag.
-->
<HTML>
<HEAD>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("This is the first of the script tags within the HEAD
tag.");
-->
</SCRIPT>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("This is the second script tag within the HEAD
tag.");
-->
</SCRIPT>
<SCRIPT language="JavaScript type="text/javascript"
src="TheExternalScript1.js"></SCRIPT>
</HEAD>
<BODY>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("\
The purpose of this program will be to:<BR/><BR/>\
\
1. Use an external script;<BR/>\
2. To use more than one SCRIPT tag inside a HEAD tag; and<BR/>\
3. To use more than one SCRIPT tag inside a BODY tag.<BR/>");
//-->
</SCRIPT>
<P>Some intermittent text.</P>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("This is the second of the script tags within the
BODY tag.");
-->
</SCRIPT>
<P>More HTML text.</P>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("This is the third of the script tags within the BODY
tag.");
-->
</SCRIPT>
<P>More and more HTML.</P>
<SCRIPT language="JavaScript type="text/javascript"
src="TheExternalScript2.js"></SCRIPT>
<P>Finally, the concluding part of the HTML text.</P>
</BODY>
</HTML>
1. Can there be more than a single script block in a given HEAD tag?
2. Can there be more than a single script block in a given BODY tag?
To test, I tried the following code. None of the script gets executed.
Can someone please give me a direction as to what I may be missing?
Thanks.
<!--The purpose of this program will be to:
1. Use an external script;
2. To use more than one SCRIPT tag inside a HEAD tag; and
3. To use more than one SCRIPT tag inside a BODY tag.
-->
<HTML>
<HEAD>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("This is the first of the script tags within the HEAD
tag.");
-->
</SCRIPT>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("This is the second script tag within the HEAD
tag.");
-->
</SCRIPT>
<SCRIPT language="JavaScript type="text/javascript"
src="TheExternalScript1.js"></SCRIPT>
</HEAD>
<BODY>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("\
The purpose of this program will be to:<BR/><BR/>\
\
1. Use an external script;<BR/>\
2. To use more than one SCRIPT tag inside a HEAD tag; and<BR/>\
3. To use more than one SCRIPT tag inside a BODY tag.<BR/>");
//-->
</SCRIPT>
<P>Some intermittent text.</P>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("This is the second of the script tags within the
BODY tag.");
-->
</SCRIPT>
<P>More HTML text.</P>
<SCRIPT language="JavaScript type="text/javascript">
<!--
document.write("This is the third of the script tags within the BODY
tag.");
-->
</SCRIPT>
<P>More and more HTML.</P>
<SCRIPT language="JavaScript type="text/javascript"
src="TheExternalScript2.js"></SCRIPT>
<P>Finally, the concluding part of the HTML text.</P>
</BODY>
</HTML>