Writing HTML | Return to Lesson 27 |

Testing HTML for Lesson 27

The HTML for this page contains a JavaScript command to display an alert message. Since it is inserted directly to the HTML for this page, it runs as soon as the browser reads the JavaScript code.

This is the code that is embedded in this very document:

<SCRIPT LANGUAGE="JavaScript">
<!-- hide from JavaScript impaired browsers
     alert('JavaScript here, boss! What do you want?');
// done hiding -->
</SCRIPT>

The alert message will pop up even before the browser even finishes displaying the remainder of this page, and it will not complete displaying until you click the Ok button in the alert message box.


Writing HTML: Testing HTML for Lesson 27
©1994-2002 Maricopa Center for Learning and Instruction (MCLI)
Maricopa Community Colleges

The Internet Connection at MCLI is Alan Levine --}
Questions? Comments? Visit our feedback center

URL: http://www.mcli.dist.maricopa.edu/tut/tut27a_ex/test27.html