MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 372

Dreamweaver api reference
Table of Contents

Advertisement

dreamweaver.getBehaviorEvent() (deprecated)
Availability
Dreamweaver 1.2; deprecated in Dreamweaver 2 because actions are now selected
before events.
Description
In a Behavior action file, this function gets the event that triggers this action.
Arguments
None.
Returns
A string that represents the event. This is the same string that is passed as an argument
(
) to the
event
canAcceptBehavior()
dreamweaver.getBehaviorTag()
Availability
Dreamweaver 1.2.
Description
Gets the source of the tag to which the behavior is being applied. This function is applicable
only in action files.
Arguments
None.
Returns
A string that represents the source of the tag. This is the same string that passes as an
argument (
HTMLelement
outside an action file, the return value is an empty string.
Example
If you write an action that can be applied only to a hypertext link (
function, as the following example shows, in the function that initializes
getBehaviorTag()
the user interface for the Parameters dialog box:
function initializeUI(){
var theTag = dreamweaver.getBehaviorTag().toUpperCase();
var CANBEAPPLIED = (theTag.indexOf('HREF') != -1));
372
Page Content
function.
) to the
canAcceptBehavior()
function. If this function appears
), you can use the
A HREF

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents