The root of my web host is my index.html, and my javascript file is in directory directory (javascript) also in root . How do I link my index to JS file? I did the following, but it is not working: & lt; Script type = "text / javascript" src = "javascript / filename.js" & gt; & Lt; / Script & gt;
This works when I do inline javascript
& lt; Script type = "text / javascript" src = "javascript / file.js" & gt; & Lt; / Script & gt;
In the sub-directory "JavaScript" loads file.js. This will work until a base href is specified.
Edit: Now I see that whatever you have, it is too much. should work. Do you get full code or urls?
Comments
Post a Comment