Featured Link: Forgiveness

Run External Javascripts

Do you have a JavaScript that you use regularly and do not want to have to copy-and-paste the entire code onto every single page? To solve this problem, you can write the script in an external file. Here's how.

1. Find the script that you use over and over again.

2. Copy and paste the part of the code after the

<script="text/javascript"> tag and before the </script> tag into a new document.

3. Save the file as a .js file, which indicates that it is a JavaScript file. Name it whatever you'd like.

4. Now paste the following code into the of your document. Change the "FILENAME" to the name of the file you saved the script as.