Firstly Javascript and Java are two different things!
To put the JAVASCRIPT into an external file you simple copy it in but don't include the <script> and </script> at the start and end. Then save it as a .js file.
Then to link to in in the html file place this in the head..
HTML Code:
<script type="text/javascript" src="javascript.js"></script>
|