Partager via


Sys.UI.Behavior getBehaviorByName Method

Gets a Sys.UI.Behavior instance with the specified name property from the specified HTML Document Object Model (DOM) element. This member a static member and can be invoked without creating an instance of the class.

var b = Behavior.getBehaviorByName(element, name);

Parameters

Term

Definition

element

The Sys.UI.DomElement object to search.

name

The name property of the Behavior instance to look for.

Return Value

The specified Behavior object, if found; otherwise, null.

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