oldmooi
10-23-2003, 02:05 AM
Hi,
I have two files:
The first is called "test.html" and contains the following script:
<script language="JavaScript" src="hello.js">
</script>
The second is called "hello.js" and contains the following script:
<script language="JavaScript">
<!--
document.write("Hello World!");
//-->
</script>
Both files are in the same folder. I'm using IE6 with Windows XP
I hoped that when I selected "test.html" with my browser a web page with "Hello World!" would open up but all I get is a blank page.
What am I doing wrong? Your help is appreciated.
I have two files:
The first is called "test.html" and contains the following script:
<script language="JavaScript" src="hello.js">
</script>
The second is called "hello.js" and contains the following script:
<script language="JavaScript">
<!--
document.write("Hello World!");
//-->
</script>
Both files are in the same folder. I'm using IE6 with Windows XP
I hoped that when I selected "test.html" with my browser a web page with "Hello World!" would open up but all I get is a blank page.
What am I doing wrong? Your help is appreciated.