Specifications
The Dreamweaver JavaScript API 381
Returns
A string that represents the function call (for example,
"MM_swapImage(’document.Image1’,’document.Image1’,’foo.gif’,’#933292969950’)")
or an array of strings if eventBasedIndex is omitted.
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 of the document and inserts them if they are missing.
Arguments
{elementNode}
elementNode
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}
• event 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.
• eventBasedIndex 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.