80
Chapter 6 Editing Pages
Creating and editing event handler script blocks
Adding and modifying script blocks for events such as
onclick
is easy from the Tag
Inspector. You can edit an event if it is supported as an attribute of the selected tag or
edit the event directly.
To add an event handler script block:
1
Select a tag in the Tag Tree to display a list of supported attributes and events in
the Tag Inspector pane.
2
You can either click the event in the Attributes list or in the Events list.
3
Open the drop-down list in the values column and select a script language for the
event handler.
4
In the Specify Event Handler Name dialog box, you can select the default entry or
type a new name, and then click OK.
The event syntax is added to the tag and a script block is created in the
HEAD
section of the document.
5
Complete the script block for the handler.
To locate an event script block in your document, double-click its name in the Tag
Inspector pane or right-click the tag and select the navigate command.
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...