'net::ERR_FILE_NOT_FOUND, no typos and files are in the same directory
I have an index.html file with <script src=”sc2.js”></script> in the head section. In the same directory I have file sc2.js that has some really simple JavaScript code I wanted to test to see what it prints. The html displays correctly in my browser, but the console says:
index.html:8 GET file:///Users/myname/projectfile/%E2%80%9Dsc2.js%E2%80%9D net::ERR_FILE_NOT_FOUND
Am I missing something to make it possible to run the code in my browser? I can still run old JavaScript projects in the browser with no problems. I also tried to move the script tag around and add the full path, which made no difference. The code works in jsfiddle.net. I'm using Chrome Canary.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
