Press "Enter" to skip to content

External JavaScript Example in JavaScript

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 :


     <script src=”ext1.js”> </script>


                     <input type=”button” value=”print me” onclick=”display()”/> </br>




function display()




Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *