applyTag()
Availability
Adobe Dreamweaver MX.
Description
When the user clicks OK, Adobe Dreamweaver calls the validateTag()
function. If the validateTag()
function returns a true
value, Adobe 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
tag
- The
tag
argument is the DOM node of the tag being edited.
Returns
Adobe Dreamweaver expects nothing.
Example
Continuing the cfweather
example, in the following code, if the user changes the ZIP code 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
}