HTML DOM name Property
Complete Button Object Reference
Definition and Usage
The name property sets or returns the name of a button.
Syntax
Example
The following example returns the name of a button:
<html>
<body>
<form>
<input type="button" id="button1"
name="button1" value="Click Me!" />
</form>
<p>The name of the button is:
<script type="text/javascript">
x=document.getElementById('button1');
document.write(x.name);
</script></p>
</body>
</html>
|
Try-It-Yourself Demos
Return
the name of a button
Complete Button Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|