Hidden.type

JavaScript 1.1+, JScript 3.0+ Nav3+, IE 4+, Opera3+ Syntax

							hidden.type

Description

The type property of the Hidden object specifies the hidden type. For all Hidden objects, the type value is Hidden.

Example

Listing 7.291 shows an example of how the type property is used to get the hidden type. The form object is used to access the type property.

Listing 7.291 Example of the type Property
<html>
<head>
<title> Using the type property of the Hidden object</title>
</head>
<body>
<form name="form1">
Form name:<input type="hidden" name="hide1" value="Test">
<p>
<input type="button" value="Hidden Type"
   onClick='alert("The Hidden object type is: " + form1.hide1.type)'>
</form>

</body>
</html>
							
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.