You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have linked the js file in html file . When I open the chrome browser console it shows error -
index.html:54 GET file:///C:/Users/nehaj/Desktop/krishna/30daysofJavaScript/day1/introduction.js net::ERR_FILE_NOT_FOUND
But when I copy the file path (which starts like c:/users/...) and use it to link the js file.
I wanted to know why it works after copying the full path but not when I am using only file name to link the js file. Bpth html and js files are in same folder.
Can anyone clear my doubt?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have linked the js file in html file . When I open the chrome browser console it shows error -
index.html:54 GET file:///C:/Users/nehaj/Desktop/krishna/30daysofJavaScript/day1/introduction.js net::ERR_FILE_NOT_FOUND
But when I copy the file path (which starts like c:/users/...) and use it to link the js file.
I wanted to know why it works after copying the full path but not when I am using only file name to link the js file. Bpth html and js files are in same folder.
Can anyone clear my doubt?
Beta Was this translation helpful? Give feedback.
All reactions