SP.UserCustomAction.scriptBlock Property

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To
Remarks

Gets or sets the value that specifies the ECMAScript to be executed when the custom action is performed.

var value = SP.UserCustomAction.get_scriptBlock(); 
SP.UserCustomAction.set_scriptBlock(value);

Property Value

Type: String

Applies To

SP.UserCustomAction Class

Remarks

It must be null if Location is not "ScriptLink". This Standard defines the ECMAScript scripting language.

See Also

Reference

SP.UserCustomAction Methods

SP.UserCustomAction Properties

SP Namespace