I have a small javascript library written by myself. I want to reference it in my web application, but it doesn't work
<script src='file:\\C:\Path\To\Script\Script.js'></script>
Is it possible to reference javascript when all you know is the absolute path?
The file:
url needs 3 forward slashes, and the path also needs forward slashes:
<script src='file:///C:/Path/To/Script/Script.js'></script>
This will ofcourse only work if you load the script within a html-file on your disk that's loaded in your browser.