value - Script Value

Specifies a client script.

Category

data

Syntax

<xp:this.value><![CDATA[textOfScript]]></xp:this.value>

Usage

In Design mode, click All Properties and look for value under data.

Examples

This client script block initializes an edit box.
<xp:scriptBlock id="scriptBlock1">
	<xp:this.value>
		<![CDATA[var e = window.document.getElementById("#{id:inputText1}");
		e.value = "Subject One"]]>
	</xp:this.value>
</xp:scriptBlock>