|
Creating behavior actions using JavaScript
In this tutorial, you'll build a behavior action that checks which browser is running and that goes to a different URL for Netscape Navigator and Microsoft Internet Explorer. You'll create the new behavior action from scratch and install it in Dreamweaver.
A JavaScript interpreter and specific API functions are built into Dreamweaver to make behaviors and other extensibility options possible. For more information on the JavaScript restrictions and required functions, see the Extending Dreamweaver documentation.
- Write a useful function in JavaScript
- Create the action file and add the behavior function
- Create an interface using an HTML form
- Write the applyBehavior() function
- Write the inspectBehavior() function
- Test the behavior action in Dreamweaver
- The source code for the tutorial action file
- Tips for debugging behavior actions
- Learning from the actions that ship with Dreamweaver
 |
 |
Ken Sundermeyer |
|
 |
8 March 1999 |
|
 |
actions, behaviors, Behavior inspector, debugging actions, debugging behaviors, inspectBehavior(), applyBehavior(), canAcceptBehavior(), behaviorFunction() |
|
 |
9851 |
 |
 |
|
|