Adobe 38040334 API Reference - Page 285
Behavior functions, dom.addBehavior
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 285 highlights
DREAMWEAVER CS3 280 API Reference Arguments None. Returns A string that contains the path of the template, which is expressed as a file:// URL. dreamweaver.templatePalette.renameSelectedTemplate() (deprecated) Availability Dreamweaver 3; deprecated in Dreamweaver 4 in favor of using "dreamweaver.assetPalette.setSelectedCategory()" on page 276 with "templates" as the argument value, and then calling "dreamweaver.assetPalette.renameNickname()" on page 276. 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). • The action argument is the function call that applyBehavior() returns if the action is added using the Behaviors panel (for example, "MM_popupMsg('Hello World')").