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);

Term

Definition

element

The DOM element to search.

type

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

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

Show: