In our last article we left off with the OnKeyUp function, which is triggered when a user releases a key on the keyboard. We will continue discussing the various JavaScript events in this article, and hopefully finish them in the next tutorial. So grab yourself some coffee and let’s get to work.
OnLoad and OnMouse JavaScript Events - OnMouseOut (Page 4 of 6 )
The OnMouseOut event is triggered when you move your mouse away from an element. In the sample below there are several things that happen when the user moves their mouse away from an element. First, the user enters text into the Enter Your Name text box. If the user moves their mouse away from the box, two things happen: first, all of the letters are made uppercase. Second, a pop-up box appears telling them that this has happened.
Next, if the user moves their mouse away from the Come Here button, a pop-up alert will appear begging them: "Please don’t leave me!"