User Guide

374 Page Content
dreamweaver.behaviorInspector.getBehaviorAt()
Availability
Dreamweaver 3.
Description
Gets the event/action pair at the specified position in the Behaviors panel.
Arguments
positionIndex
The positionIndex argument is the position of the action in the Behaviors panel. The
first action in the list is at position 0.
Returns
An array of two items:
An event handler
A function call or JavaScript statement
Example
Because positionIndex is a zero-based index, if the Behaviors panel displays the list, a call to
the
dreamweaver.behaviorInspector.getBehaviorAt(2) function returns an array that
contains two strings:
"onMouseOver" and
"MM_changeProp('document.moon','document.moon','src','sun.gif','MG')".
dreamweaver.behaviorInspector.getBehaviorCount()
Availability
Dreamweaver 3.
Description
Counts the number of actions that are attached to the currently selected element through
event handlers.
Arguments
None.
000_DW_API_Print.book Page 374 Wednesday, July 20, 2005 11:58 AM