User Guide

Behavior functions 305
dom.removeBehavior()
Availability
Dreamweaver 3.
Description
Removes the action at the specified position within the specified event. This function acts on the
current selection and is valid only for the active document.
Arguments
event
, {eventBasedIndex}
The event argument is the event handler through which the action is attached to the element
(for example,
onClick, onMouseOver, or onLoad). If you omit this argument, all actions are
removed from the element.
The eventBasedIndex argument, which is optional, is the position of the action to be
removed. For example, if two actions are associated with the specified event, 0 is first and 1 is
second. If you omit this argument, all the actions for the specified event are removed.
Returns
Nothing.
dreamweaver.getBehaviorElement()
Availability
Dreamweaver 2.
Description
Gets the DOM object that corresponds to the tag to which the behavior is being applied. This
function is applicable only in Behavior action files.
Arguments
None.
Returns
A DOM object or a null value. This function returns a null value under the
following circumstances:
When the current script is not executing within the context of the Behaviors panel
When the Behaviors panel is being used to edit a behavior in a timeline
When the currently executing script is invoked by dreamweaver.popupAction()
When the Behaviors panel is attaching an event to a link wrapper and the link wrapper does
not yet exist
When this function appears outside of an action file
000_DW_API_Print.book Page 305 Wednesday, August 20, 2003 9:14 AM