external js

63

external js -

<script type="text/javascript" src="external.js"></script>

Simple example of using external file javascript in html -

<html>  
<head>  
<meta charset="utf-8">  
<title>Softhunt.net</title>  
</head>  
<body>  
<form>  
<a href="#" onclick="display()">Click Me</a>/>  
</form>  
<script src="index.js">  
</script>  
</body>  
</html>

Comments

Submit
0 Comments