The onmouseout attribute is an event handler attribute. It "triggers" and calls the code in its value when the mouse is no longer over an element. See w3schools and event handler attribute for some more examples.