Understanding Behaviors

Behaviors are one of the biggest enhancements made to FrontPage 2003 over previous versions, and they go a long way toward making scripting easy to use for beginners and experts alike. Behaviors are a simple way to manage event handlers for objects. They automatically generate the client-side scripts and event-handler attributes for the elements that you add them to.

Behaviors consist of two parts: an event and an action. As we've already discussed, an event is something that occurs as a result of a browser or a user action. The action refers to the type of script that is called in response to the event.

You add behaviors to your elements using the Behaviors task pane, shown in Figure 14.4.

Figure 14.4. The Behaviors task ...

Get Absolute Beginner's Guide to Microsoft® Office FrontPage® 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.