onmousedown - Mouse Down Script

Activates an event handler when a control receives a mouse press.

Category

events

Syntax

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

Usage

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

Examples

This button has a client handler for the onmousedown event. The client handler puts a value in an input box.
<xp:button value="Test" id="button1">
	<xp:eventHandler event="onmousedown" submit="false">
		<xp:this.script>
			<![CDATA[var e = window.document.getElementById("#{id:inputText1}");
			e.value = "Mouse down"]]>
		</xp:this.script>
	</xp:eventHandler>
</xp:button>