script - Client Script

Specifies a client script.

Category

events

Syntax

script="textofscript"

Usage

In Design mode, click All Properties and look for script under basics.

Examples

This button contains an event handler for a client event.l
<xp:button value="Label" id="button2">
	<xp:eventHandler event="onclick" submit="false">
		<xp:this.script><![CDATA[window.alert("Hello, world!")]]></xp:this.script>
	</xp:eventHandler>
</xp:button></xp:view>