HTML DOM name Property
Complete Textarea Object Reference
Definition and Usage
The name property sets or returns the name of a text
area.
Syntax
Example
The following example gets the name of a text area:
<html>
<head>
<script type="text/javascript">
function alertName()
{
alert(document.getElementById('txt1').name);
}
</script>
</head>
<body>
<textarea id="txt1" name="textarea1">
Hello world....This is a text area
</textarea>
<br />
<input type="button" onclick="alertName()"
value="Alert name" />
</body>
</html>
|
Complete Textarea Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|