HTML Script not being included
The following is my code: <script src="/1337.js" type="text/javascript" language="javascript"></script> This is included and my page works on all browsers but firefox (on ubuntu). What's wrong with it?
- EDIT***
I fixed it. It turns out that it was a problem in the contents of the script causing the whole script to be ignored, and excluded from firebug's list of scripts. PS it wasn't any of the other solutions given.
Modified
Chosen solution
By the way, are you testing on a server or under the file:// protocol? There are security restrictions on the file:// protocol relating to src= navigation to parent and sibling folders that will not apply on a web server, so you should test on a web server before spending too many hours troubleshooting.
Read this answer in context 👍 0All Replies (2)
I would remove the language attribute. Not needed in modern browsers. But unlikely to be your problem.
Can you confirm in the Web Console that the file is loading (200 status)? Use Ctrl+Shift+r to bypass the cache and force a full retrieval and then watch for the file.
Assuming Firefox retrieves the script, is there anything of note in the Browser Console (formerly known as the Error Console) in relation to the script contents?
Chosen Solution
By the way, are you testing on a server or under the file:// protocol? There are security restrictions on the file:// protocol relating to src= navigation to parent and sibling folders that will not apply on a web server, so you should test on a web server before spending too many hours troubleshooting.