+ 1

Including external JavaScript files

Is it possible for me to include external JavaScript files in an html page with a single script tag? If yes, how can I achieve that ?

29th Aug 2017, 3:03 PM
Peter
Peter - avatar
3 Answers
+ 7
what "single script tag" mean? to add external js, you must write <script src="your/path/to/file.js"></script>
29th Aug 2017, 3:06 PM
Amethyst Animion
Amethyst Animion - avatar
+ 6
to add multiple js files, you must add it in different script tag <script src="your/path/to/file-1.js"></script> <script src="your/path/to/file-2.js"></script> <script src="your/path/to/file-3.js"></script>
29th Aug 2017, 3:22 PM
Amethyst Animion
Amethyst Animion - avatar
+ 1
I mean like <script src= "Have multiple JavaScript files"></script >
29th Aug 2017, 3:09 PM
Peter
Peter - avatar