Share via


PublishingButton.ClientOnClickScript property

Gets or sets the script that is executed when this button is clicked.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Property ClientOnClickScript As String
    Get
    Set
'Usage
Dim instance As PublishingButton
Dim value As String

value = instance.ClientOnClickScript

instance.ClientOnClickScript = value
public string ClientOnClickScript { get; set; }

Property value

Type: System.String
String that represents the script that is executed when this button is clicked.

Remarks

When this value is not an empty string, the NavigateUrl property of this button is not used.

See also

Reference

PublishingButton class

PublishingButton members

Microsoft.SharePoint.Publishing.WebControls namespace

PublishingButton