Link.onMouseOut

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

onMouseOut="command"

Description

The onMouseOut event handler of the Link object is used to handle the event when the mouse cursor is moved away from the link.

Example

Listing 7.370 shows how the onMouseOut event handler is used.

Listing 7.370 Example of the onMouseOut Event Handler
<html>
<head>
<title> Using the onMouseOut event handler of the Link object</title>
</head>
<body>

<script language="JavaScript">
<!--Hide
// displays message when the MouseEvent occurs.
function showMsg(){
     document.form1.text1.value = "The Mouse cursor was removed from the link";
}
// End Hide --->
</script>
							 Click the mouse button while the cursor is on the link. <form name="form1"> ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.