HTML DOM name Property
Complete Submit Object Reference
Definition and Usage
The name property sets or returns the name of a submit button.
Syntax
Example
The following example returns the name of a submit button:
<html>
<body>
<form>
<input type="submit" id="submit1" name="submit1" />
</form>
<p>The name of the submit button is:
<script type="text/javascript">
x=document.getElementById('submit1');
document.write(x.name);
</script></p>
</body>
</html>
|
Try-It-Yourself Demos
Return
the name of a submit button
Complete Submit Object Reference
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|