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
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...