+ 1

is it possible to write JS outside of the HTML document?

31st Jul 2016, 7:29 PM
Moses
3 Answers
+ 3
yaa it is possible
1st Aug 2016, 3:28 AM
Jeevan Pokhrel
Jeevan Pokhrel - avatar
+ 2
tnx Mohd Sohail Khan for detail explanation
19th Jan 2017, 10:36 AM
Moses
+ 1
of course . first of all create a .js file In root folder or your current folder and put all javascript code in it.. then link it on your HTML page by <script> tag in the <head> section . <script type="text/javascript" src="your javascript file name.js"></script>
31st Jul 2016, 8:27 PM
Mohd Sohail Khan
Mohd Sohail Khan - avatar