HTML DOM type Property
Complete Hidden Object Reference
Definition and Usage
The type property returns the type of form element. For a hidden object this will
always be "hidden".
Syntax
Example
The following example returns which type of form element the hidden field is:
<html>
<body>
<form>
<input type="hidden" id="hidden1" />
</form>
<script type="text/javascript">
x=document.getElementById("hidden1");
document.write("Form element type is: ");
document.write(x.type);
</script>
</body>
</html>
|
Try-It-Yourself Demos
Get the
type of form element (hidden field)
Complete Hidden 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!
|
|