PcolaSteve
Programmer
I am testing an external JavaScript file but am unable to get it to load. It has got to be something simple that I am missing. Here is the JS code on the external file:
document.write("Test external link.");
That is all that is written on that file saved as: test.js
Here is the script on the main page. I have tested the script in both the 'head' and the 'body' of the code.
<script type="text/javascript" src="test.js"></script>
The src of course has the correct file path, so I can't understand why it isn't loading. (I do belive there may be an issue with the file path but I have verified it more than once.
Any suggestions?
document.write("Test external link.");
That is all that is written on that file saved as: test.js
Here is the script on the main page. I have tested the script in both the 'head' and the 'body' of the code.
<script type="text/javascript" src="test.js"></script>
The src of course has the correct file path, so I can't understand why it isn't loading. (I do belive there may be an issue with the file path but I have verified it more than once.
Any suggestions?