beautypg.com

Dom.reapplybehaviors(), Dom.removebehavior(), Dreamweaver.getbehaviorelement() – Adobe Dreamweaver API Reference CS5 User Manual

Page 318

background image

313

DREAMWEAVER API REFERENCE

Page content

Last updated 8/27/2013

dom.reapplyBehaviors()

Availability
Dreamweaver 3.

Description
Checks to make sure that the functions that are associated with any behavior calls on the specified node are in the

HEAD

section of the document and inserts them if they are missing.

Arguments
elementNode

The elementNode argument is an element node within the current document. If you omit the argument,
Dreamweaver checks all element nodes in the document for orphaned behavior calls.

Returns
Nothing.

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, and updated in CS4.

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.