0 shows support for every tag under the HTML sun??”94
in all??”with almost every tag capable of handling any type of event.
Although any HTML tag could potentially be used to attach a behavior, the most commonly
used by far are the tag (for entire-page events such as onLoad), the
![]()
tag (used
as a button), and the link tag,
.
To find the default event for a tag, simply select the tag in a document, use Add Actions to attach any valid
actions to it, and see what event appears alongside the action in the Behaviors panel. To find the default
event for a tag as used by a particular browser, specify the browser in the Show Events For submenu of the
Add (+) drop-down list, and proceed as described previously.
NOTE NOTE
407
Using Behaviors 12
Triggering Custom Functions
Although the standard behaviors can accomplish a great deal??”and extensions available from the Adobe
Exchange can do even more??”sometimes a developer needs to trigger a custom function. Dreamweaver
provides a way to link an event to a function quickly, right in the Behaviors panel. The action column of the
Behaviors panel not only displays behaviors applied in the usual manner, but it is also editable. In other
words, you can enter your own function call directly into the Behaviors panel, and Dreamweaver writes the
code into the tag.
Pages:
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796