Definition :
It is a process of writing java script code outside the web page then it is called as external java script.
Advantages is it enhances the reusability.
Drawback is external java script cannot allow used to take up only specific functions.
Program :
<html>
<script src=”ext1.js”> </script>
<body>
<input type=”button” value=”print me” onclick=”display()”/> </br>
</body>
</html>
Ext1.js:
function display()
{
alert(“HELLO WELCOME”);
}
Be First to Comment