Instructions
Open the text editor program, and create a new file. Name the file "Test.js" and save it.
Open the text file containing the Javascript code, within your text editor program. Find the lines where the script is located -- normally enclosed between "<script>" and "</script>" tags. Using the mouse, highlight the script, and press "CTRL" + "C" to copy it.
Open the "Test.js" file saved earlier. Press "CTRL" + "V" to paste the script into the file. Ensure that the "<script>" and "</script>" tags are not present in the file, and then save it. The script can now be executed from within HTML Web pages using the following lines:
<script>
language="javascript" src="Test.js">
</script>