R
RICHARD BROMBERG
I have a simple program to test using an external .js file.
This external file contains some functions that I need to call from several html programs.
The program as written below works fine.
1. <html>
2. <head>
3. <meta http-equiv="Content-Language" content="en-us">
4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
5. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
6. <meta name="ProgId" content="FrontPage.Editor.Document">
7. <title>External .JS file Test</title>
8. </head>
9. <body>
10. <p>Program running</p>
11. <SCRIPT LANGUAGE="JAVASCRIPT" type="text/javascript" >
12. document.write("Hello")
13. </SCRIPT>
14. </body>
15. </html>
When I change line number 11 to refer to an external .js file (see code below) then the program fails.
<SCRIPT LANGUAGE="JAVASCRIPT" type="text/javascript" "src=myfunctions.js" >
I also tried using the full path to the .js file, no help.
The external .js file contains some functions that will be called from several html programs. Any idea what is wrong with this code?
Thanks
Thanks
This external file contains some functions that I need to call from several html programs.
The program as written below works fine.
1. <html>
2. <head>
3. <meta http-equiv="Content-Language" content="en-us">
4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
5. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
6. <meta name="ProgId" content="FrontPage.Editor.Document">
7. <title>External .JS file Test</title>
8. </head>
9. <body>
10. <p>Program running</p>
11. <SCRIPT LANGUAGE="JAVASCRIPT" type="text/javascript" >
12. document.write("Hello")
13. </SCRIPT>
14. </body>
15. </html>
When I change line number 11 to refer to an external .js file (see code below) then the program fails.
<SCRIPT LANGUAGE="JAVASCRIPT" type="text/javascript" "src=myfunctions.js" >
I also tried using the full path to the .js file, no help.
The external .js file contains some functions that will be called from several html programs. Any idea what is wrong with this code?
Thanks
Thanks