jamguitar
04-03-2003, 12:15 PM
I tried to external js file loading under ASP environment, however, I only sucess showing up the Alert Message.
Once, I remove the // out of hello.js the Alert Message wouldnt appear.
Moreover, how do i make the calling funciton working under hi.htm
My file as
+========================================+
hi.htm
+========================================+
<html>
<head>
<title>Hello World</title>
<script language="JavaScript" type="text/javascript"
src="hello.js">
</script>
</head>
<body >
Blah blah blah
</body>
</html>
+========================================+
+========================================+
hello.js
+========================================+
alert('hee')
//functon helloWorld()
//{
alert( 'Hello World!' )
//}
alert('HEY')
+========================================+
Once, I remove the // out of hello.js the Alert Message wouldnt appear.
Moreover, how do i make the calling funciton working under hi.htm
My file as
+========================================+
hi.htm
+========================================+
<html>
<head>
<title>Hello World</title>
<script language="JavaScript" type="text/javascript"
src="hello.js">
</script>
</head>
<body >
Blah blah blah
</body>
</html>
+========================================+
+========================================+
hello.js
+========================================+
alert('hee')
//functon helloWorld()
//{
alert( 'Hello World!' )
//}
alert('HEY')
+========================================+