forms[0].pluginfilename.value) + ??????>??™;
// clear the field for next insertion
clearForm();
return retval;
}
In the preceding case, the input filename is located in
document.forms[0].pluginfilename.value
Because the form is named (theForm), this same value can also be written as follows:
document.theForm.pluginfilename.value
The escape function is an internal JavaScript function that converts a text string so that it can
be read by a Web server. Any special characters are encoded into their hexadecimal ASCII
equivalents. A single space between words, for instance, is converted to %20.
The text input types recognize two events in the Dreamweaver DOM: onBlur and onFocus. When a user
selects a text field, either by tabbing to or clicking it, that text field is said to have focus??”and the
onFocus event is fired. When the user leaves that field, the field loses focus or blurs??”and the onBlur
event is triggered. Because the DOM does not recognize the onChange event handler with text fields, you
can use a combination of onFocus and onBlur to check for changes and act accordingly.
Submit, Reset, and Command buttons
The button input types are used in parameter forms to trigger custom JavaScript functions. Instead of sending
data to an external server, the data is sent to a specified internal function.
Pages:
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886