My first observation is that the script tag references a ‘scripts’ folder relative to the current folder.
According to your post, the ‘scripts’ folder is in the root (/scripts)
If your HTML file is in what we will call your ‘root’ folder, and the .js file is, indeed, in the ‘/scripts’ folder relative to where the HTML file is located, but it isn’t working, the first thing I would do is check the browser console for javascript error messages indicating what might the problem be.
If you are opening the document in a browser with “file:///” as the protocol, that could be a problem (although I doubt it.) However, if you have a webserver set up, try viewing the file through the webserver (IIS, Apache, etc.) If it’s on your local machine, you could try “http://localhost/filename.html” or “http://127.0.0.1/filename.html” in the browser.
Thank you WolfShade,
My js scripts worked fine on external files and suddenly it stopped. Files that worked before ceased to respond !
How do I get" “browser console for javascript error messages” ?
Thanks again !
My first observation is that the script tag references a ‘scripts’ folder relative to the current folder.
According to your post, the ‘scripts’ folder is in the root (/scripts)
That may be your problem.
[/quote]
Thanks Parkin,
I’m not using a server. Just uploadung an HTML file (located on “d:\javascrupy” ) which calls a js file located at: “d:\javascript\scripts”. Must I do it on a web server (“apache”)? i
From “open a file (ctrl_o)” menu I select an HTML file. It might be that js scripts that worked for me in the past were built in the HTML file…
I’ll try using my apache web server…
Thanks