LOAD and UnLOAD - CODE<body onload="alert('Welcome, ' + visitorName+'! \n\n This welcome message was created by
an onLoad event in the BODY tag...');" onunload="alert('Bye ' + visitorName +
'! Thanks for visiting!!\n\n This farewell was created by an
unLoad event in the BODY tag...')";> | |
![]() |
Image Rollover CODE<img id="movie1" name="movie1" src="marley.jpg" width="100px" height="150px" border="1px" alt="Marley the Movie" onmouseover="document.movie1.src='milk.jpg'" onmouseout="document.movie1.src='marley.jpg'" /> |
| Link to Nowhere | Confirm Event CODE<a href="javascript: void(0);" onclick="return confirm ('Do you really want
to leave?')">Link to Nowhere</a> |
| Link to Martha's Part 4 FORM | <a href="practice10-part4.html" onclick="return confirm('Are you ready?')">Link to
Martha's Part 4 FORM</a> |
Assignment:
1. Create a new document which uses a load event to welcome the user to the page and then tells them goodbye when they leave the page.