Udostępnij za pośrednictwem


Sys.UI.Behavior getBehaviorsByType Method

Gets an array of Sys.UI.Behavior objects that are of the specified type from the specified HTML Document Object Model (DOM) element. This method is static and can be invoked without creating an instance of the class.

var b = Behavior.getBehaviorsByType(element, type);

Parameters

Term

Definition

element

The DOM element to search.

type

The type of the Sys.UI.Behavior objects to find.

Return Value

An array of all Behavior objects of the specified type that are associated with the specified DOM element, if found; otherwise, an empty array.

See Also

Reference

Sys.UI.Behavior Class

Concepts

Creating an Extender Control to Associate a Client Behavior with a Web Server Control

Other Resources

Language Reference