The OnClick property returns/sets a custom client-side OnClick event handler for the Item.

Property Value

The client-side OnClick event handler string.

Remarks

Sets the Item's OnClick client-side event handler. (example: OnClick="MyOnClickHandler();").

When OnClick is set, it will override the Item.URL property.

Two optional parameters can be passed to your client-side event handler: Icon and IconHover. (example: OnClick="MyOnClickHandler(Icon, IconHover);"). These parameters will pass in references to the browser Icon image objects if you have set either Item.IconImage or Item.SelectedIconImage.

NOTE: You can use the client-side window and location objects to Target specific frames when loading a document.

Default: Empty String


Copyright © Coalesys, Inc.