As far as alerts and windows behaviors is concerned, as well as the simple "Pop-up Message", which just causes a system alert box to appear, Dreamweaver also offers the more sophisticated "Open Browser Window". This Dreamweaver behavior allows you to create a pop-up window of any specified dimension and allows you to choose the attributes of the window: the HTML file it displays, the presence or absence of the title bar, scroll bars, etc. The key behavior relating to forms is called "Validate Form". It performs simple checks on any text field within a given form.
(It ignores any fields other than text fields.) To use it, select a field (the validation will then occur when the user leaves the field) or select the entire form (the validation will then occur when the form is submitted). Choose "Validate Form" form the Behaviors panel menu and specify the type of validation you wish to perform, for example, ensuring that a field has not been left blank. Dreamweaver contains a couple of very useful behaviors which manipulate the content of HTML elements. To use these, you need to give the element and ID (for example,
). The DIV element offers the greatest flexibility when using this behavior since it can contain just about anything you want.
The writer of this article is a developer and trainer with Macresource Computer Solutions, a UK IT training company offering Adobe Dreamweaver training courses at their central London training centre.