How to use internal JavaScript ?
1. JavaScript can be inserted into documents by using <Script> tag .
2. The <Script> tag provides a block to write the JavaScript programs.
(Internal JavaScript will run on the same page you pasted/write it.)
Example Code :
<script type= "text/javascript" > (starting tag with type)
//js code goes here ..... (all script write here)
</script> (ending tag)
How to use external JavaScript ?
To use the pre-define programs of any JavaScript library.
Example code :
<script src= " myscript.js" ></script>
(make a "myscript.js" file/library write all code in this file and include where you use with the help of above code.)
