Macromedia dreamweaver 8-using dreamweaver Benutzerhandbuch
816
Chapter 39: Creating Forms
4.
If your JavaScript function doesn’t exist in the
head
section of the document yet, add it
now.
For example, you could define the following JavaScript function in the
head
section of the
document to display a message when the user clicks the Submit button.
function processMyForm(){
alert('Thanks for your order!');
}
}
Creating accessible HTML forms
When you insert an HTML form object and you’ve selected the Form Object option in
Accessibility preferences, Dreamweaver prompts you to enter information to make the form
object accessible. You can also change accessibility attributes after inserting the object.
Accessibility preferences, Dreamweaver prompts you to enter information to make the form
object accessible. You can also change accessibility attributes after inserting the object.
To add an accessible form object:
1.
The first time you add accessible form objects, activate the Accessibility dialog box for form
objects (see
objects (see
).
This is a one-time-only step.
2.
In the document, place the insertion point where you want the form object to appear.
3.
Select Insert > Form and select a form object to insert.
The Input Tag Accessibility Attributes dialog box appears.