0
Morning. My External Javascript file is not display in my browser. Thanks
display script JavaScript https://code.sololearn.com/W95LC6AFkR46/?ref=app https://code.sololearn.com/W0Vw98CIgn22/?ref=app
2 ответов
+ 1
If you are working on the online environment, put your Javascript code in the tab provided like you have done in https://code.sololearn.com/W0Vw98CIgn22/?ref=app.
If you are working with your files locally(files saved on your computer), put your .thtml and app.js files in the same folder.
+ 1
This may help you with linking your files:
https://www.grainge.org/pages/authoring/relative_paths/relative_paths.htm
We use relative path to link, and practice is to make project folder, where you place every file of this website for example.
If you have a lot of files of css or js, you can make folder inside project folder to organize.
You need to specify location of your file so we can link them in html, see link to understand how it work. It depend of where is your external file and where is your html file, is it in same folder or diferent one.
If i remember right we cant link from our saved codes in sololearn, but we can upload it somewere on internet and use apsolute link to connect them.
If you practice relative links use your pc or some editor on phone, sololearn save our codes on cloud not on our phone so we can't connect them with relative links.