-
Step 1
Start the word processor or text editor you will use to create your web page. Locate the web page you will be editing. Position the cursor where you want the JavaScript to appear on your page.
-
Step 2
Type <SCRIPT TYPE=“text/javascript”> on your page.
-
Step 3
Type the code for the JavaScript you will be using.
-
Step 4
Type </SCRIPT> to complete the JavaScript. Your text should be similar to the following example, which shows JavaScript added to display a pop-up message:<SCRIPT TYPE=“text/javascript”>Alert(“All visitors to our site can enter to win our fast cash drawing with no obligation!”);</SCRIPT>
-
Step 5
Open a new web browser to verify that your web page is running the JavaScript correctly. Test the JavaScript to verify that it is user-friendly.








