Specifications
Chapter 10118
Returns
Dreamweaver expects a Boolean value: true if the input for HTML form elements is valid; false 
if input values are not valid. 
Example
While the user creates a table, a negative integer is entered for the number of table rows. 
validateTag() detects the invalid input, pops up an alert message, and returns false.
applyTag()
Availability
Dreamweaver MX
Description
When the user clicks OK, Dreamweaver calls validateTag(). If validateTag() returns true, 
Dreamweaver calls this function and passes the 
dom object that represents the current tag (the tag 
that is being edited). The function reads the values out of the form elements and writes them into 
the 
dom object.
Arguments
Accepts the dom node of the tag being edited. 
Returns
Dreamweaver expects nothing. 
Example
Continuing the cfweather example, if the user changes the zip from 94065 to 53402, in order to 
update the user’s document to use the new ZIP code, the 
dom object must be updated: 
function applyTag(tag)
{
tag.zip = document.forms[0].zip.value
}










