0👍
The correct syntax to be used to load the JavaScript file from you local folder would be as follows:
<script src="file:///C:/Temp\Chart.js"></script>
Browsers however won’t allow you to load local resources and you should see a corresponding error message on the console. Most browsers have an option to allow such access but you need to explicitly enable this since it makes your system vulnerable.
In case you’re using Chrome, you can get further information from the
article at
https://chrisbitting.com/2014/03/04/allow-local-file-access-in-chrome-windows/
Source:stackexchange.com