JavaScript Reference/Javascript Properties/type textarea
"type" Example
<html>
<head>
<script language="JavaScript">
function function1() {
alert("The "myElem" element has a type value of:\n"+myElem.type);
}
</script>
</head>
<body>
<textarea name="myElem" cols="20" rows="8">
</textarea>
<input type="button" value="Click here" onClick="function1();">
</body>
</html>
"type" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<textarea> |
+----------------+--------------------------------------------------------------+
"type" Syntax and Note
Note:
Read-only property.
Returns the type of input element.
Value: textarea.
Syntax:
document.getElementById("textareaID").type
document.all.textareaID.type // IE only