• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Power Event Planning

Looking for a way to trigger a custom JavaScript or server function? The Behaviors panel is open for business! Not only does it enable you to choose any of the Dreamweaver built-in JavaScript behaviors, you can also enter your own function for any recognized event. Here’s how it works: Select the tag you want to trigger the behavior and switch to the Behaviors panel by choosing Window > Behaviors (or that ever-popular Shift+F3 keyboard shortcut). The Behaviors panel lets you see either just the events and behaviors already applied or all the possible events for the selected tag—choose the View option from the two buttons on the left of the panel. Either way, choose your event from the column on the left and enter the JavaScript or dynamic code in the column on the right. Dreamweaver writes both event and behavior directly into the tag. If your code requires quotes, use single quotes rather than double quotes—Dreamweaver converts double quotes to the character entity (")—a no-no in those browser social circles.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint