+ 1
is it possible to write JS outside of the HTML document?
3 Answers
+ 3
yaa it is possible
+ 2
tnx Mohd Sohail Khan for detail explanation
+ 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>