Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

HTML Script not being included

more options

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.

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 by htmlguy

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 👍 0

All Replies (2)

more options

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?

more options

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.