Javascript Reference
Categories: TEXTAREA

javascript TEXTAREA defaultValue

@March 15, 2008, 1:22 a.m.
defaultValueFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read-only  

Specifies the default text for the textarea element, as established by the text between the start and end tags in the page's source code.

 
Example
 
var txtAObj = document.forms[0].myTextArea;
if (txtAObj.value != txtAObj.defaultValue ) {
    ...
}
 
Value

Any string value.

 
Default

None.

Under moderation.
ascendaccrxk - 2016-05-25

Powered by Linode.