onClientLoad - On Client Load

Activates event handlers when a page or panel loads to the client.

Category

events

Syntax

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

Usage

This event is intended for client-side handlers.

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

Examples

This page event handler puts a default value in an edit box on page load.
<xp:eventHandler event="onClientLoad" submit="false">
	<xp:this.script><![CDATA[var e = window.document.getElementById("#{id:inputText1}");
	e.value = "My subject";]]></xp:this.script>
</xp:eventHandler>