Things You'll Need:
- Web browser
- JavaScript enabled for your browser
- Connection to the Internet
- Web page
-
Step 1
Find a JavaScript. Determine what you need to add to your web page, then look through the free JavaScripts on this page: javascript.internet.com
-
Step 2
Click on the JavaScript you are interested in.
-
Step 3
Test the JavaScript by following the instructions on the page.
-
Step 4
Copy the JavaScript source code. Scroll down on the page and you will find a section that contains the code needed for the JavaScript. Highlight the code.
-
Step 5
Add the JavaScript to your page. Paste the code into your web page on your desktop.
-
Step 6
Read all of the notes the JavaScript author has written. Most of the time the authors have written thorough instructions about how to add the code to your HTML page.
For example, often you'll find that part of the JavaScript will belong in the <head> </head> section and the rest will go within the <body> tags. -
Step 7
Test the JavaScript with your browser. Point your browser to your local web page and check to see that your JavaScript works.








