Link.onMouseOver

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

onMouseOver="command"

Description

The onMouseOver event handler of the Link handles the event when the mouse cursor is moved over the HTML link.

Example

Listing 7.371 shows how the onMouseOver event handler is used to display a message when the mouse cursor is moved over the link.

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

<script language="JavaScript">
<!--Hide
// sets the text in the textbox to display the message.
function showMsg(){
     document.form1.text1.value = "The Mouse cursor was moved over the link";
}

// End Hide --->
</script>
							 Move the ...

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.