>

Welcome Message


Example of Script
When you enter this page, a message will pop up.
Grab the Code
Explanation of Code
You can use the complete <BODY> tag in the example or you can use only the onLoad="alert() portion in your own <BODY> tag. This simple JavaScript uses the onLoad event handler to cause an alert box to pop up when the visitor enters the page. Did you notice that this is a multi-line message? This was done with the use of the \n character in the message.
Copyright © 2001 John H. Bolgiano, Jr. - All rights reserved
Modified with permission for educational use by Roberta Bush