Welcome to JavaScript Finder
Javascript External File
You can make an external file (with a .js extension), then link to that file from within your HTML page. This is a good idea if you use the same scripts across multiple HTML pages, or a whole website. Make a javascript and save it with the .js extension. Just save the script, no HTML code. To link to an external JavaScript file, you just add a src attribute to your HTML script tag.
JavaScript : External File
<script style="text/javascript" src="external_javascript.js"></script>