onmouseout - Mouse Out Script

Activates an event handler when a control receives a mouse away movement.

Category

events

Syntax

<xp:eventHandler event="onmouseout" attributes>content</xp:eventHandler>

Usage

For detailed event handler syntax, see eventHandler - Event Handler (property).

Examples

This button has client handlers for the onmouseover and onmouseout events. The onmouseover client handler puts a value in an input box. The onmouseout client handler clears that value.
<xp:button value="Test" id="button1">
	<xp:eventHandler event="onmouseover" submit="false">
		<xp:this.script>
			<![CDATA[var e = window.document.getElementById("#{id:inputText1}");
			e.value = "Click this button to run the test"]]>
		</xp:this.script>
	</xp:eventHandler>
	<xp:eventHandler event="onmouseout" submit="false">
		<xp:this.script>
			<![CDATA[var e = window.document.getElementById("#{id:inputText1}");
			e.value = ""]]>
		</xp:this.script>
	</xp:eventHandler>
</xp:button>