The Behaviors Api - MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Table of Contents

Advertisement

<body
onLoad="checkBrowserBrand('netscaptecontent.htm','iecontent.htm')">
</body>
</html>
Testing the behavior
Finally, you can test the behavior.
To test the behavior:
1.
View the file whichbrowser.htm in your browser.
Depending on which browser you are using, either iecontent.htm or netscapecontent.htm
appears.

The Behaviors API

Two Behaviors API functions are required (
the rest are optional.
applyBehavior()
Description
This function inserts into the user's document an event handler that calls the function that the
behaviorFunction()
other edits on the user's document, but it must not delete the object to which the behavior is
being applied or the object that receives the action.
Arguments
uniqueName
The argument is a unique identifier among all instances of all behaviors in the user's
document. Its format is
function that
behaviorFunction()
into the user's document and you want to assign a unique value to its
312
Behaviors
applyBehavior()
function inserts. The
functionNameInteger
inserts. This argument is useful if you insert a tag
and
function can also perform
applyBehavior()
, where
functionName
behaviorFunction()
is the name of the
attribute.
NAME
);

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Dreamweaver 8

Table of Contents