Fri. Dec 6th, 2019

Host your Website

Read and learn

FatCow Web Hosting $1.00/mo* Trust your web hosting to the #1 web host provider, GoDaddy!

How To Link an External JavaScript File to an HTML Document

1 min read

Subscribe To The Channel Here –

Support The Channel By Shopping On Amazon –

13 thoughts on “How To Link an External JavaScript File to an HTML Document

  1. Hello sir,
    I have a very large file i use, that displays 8 clocks across the top of my web page. Can I save the html as a *.js and run it as a script. I notice you said to place it at the bottom, but it needs to be at the top. So using the info presented in you video my clock file gets renamed from clock.html to clock.js and then follow the instructions in your file.

    I hope that is correct.

    thank you

  2. Great video <3 I would like to thank you very much I was struggling with trying putting the code before </body> but it doesn't work but inside footer it works thanks bro!

  3. Thanks for the tips. An extension: are you aware of any hosting service where we can put our external .js and .css files? I need to refer to these from my blogger post for example, but as of the moment, both Google drive and Dropbox hostings and links do not work as I've tried them. Any suggestion is much appreciated!

  4. Thank you. i use your advice <script src="js.js"></script> now the Javascript file works:) i used to follow <script src="scripts/js.js"></script> and the javascript file wasn't working, a bit confusing because src="scripts/js.js" works for other people

  5. so I'm a new programmer and have been wondering. do I need a separate is file for each piece of code? like if I make a picture slideshow with js do I need a seperste file for a signup menu? or can I use multiple references in a single file?

Comments are closed.

Copyright © All rights reserved. | Newsphere by AF themes.