User Guide

368 Page Content
dreamweaver.templatePalette.renameSelectedTemp
late() (deprecated)
Availability
Dreamweaver 3; deprecated in Dreamweaver 4 in favor of using
dreamweaver.assetPalette.setSelectedCategory() with
"templates" as the argument value,
and then calling dreamweaver.assetPalette.renameNickname()
.
Description
This function turns the name of the selected template into a text field, so the user can rename
the selection.
Arguments
None.
Returns
Nothing.
Behavior functions
Behavior functions let you add behaviors to and remove them from an object, find out which
behaviors are attached to an object, get information about the object to which a behavior is
attached, and so on. Methods of the
dreamweaver.behaviorInspector object either control
or act on only the selection in the Behaviors panel, not the selection in the current document.
dom.addBehavior()
Availability
Dreamweaver 3.
Description
Adds a new event/action pair to the selected element. This function is valid only for the
active document.
Arguments
event, action, {eventBasedIndex}
The event argument is the JavaScript event handler that should attach the behavior to the
element (for example,
onClick, onMouseOver, or onLoad).
000_DW_API_Print.book Page 368 Wednesday, July 20, 2005 11:58 AM