Name

hidden — NN 3 IE 4 DOM 1

Synopsis

The hidden object is a form control generated with an INPUT element whose TYPE attribute is set to "hidden". This element has no event handlers, because users do not interact directly with the element. Be aware that any values assigned to a hidden object are removed if the user reloads the page. In other words, it does not function as a persistent store. The Win32 version of Internet Explorer 4 exposes many more properties than are listed below. Most of these are included in the internal object definition for consistency across other text-oriented form controls, but have no significance for a hidden object.

HTML Equivalent

<INPUT TYPE="hidden">

Object Model Reference

NN

[window.]document. formName . elementName

[window.]document.forms[i].elements[i]

IE

[window.]document. formName . elementName

[window.]document.forms[i].elements[i]

[window.]document.all. elementID

Properties

className

document

language

sourceIndex

title

dataFld

form

name

style

type

dataSrc

id

parentElement

tagName

value

disabled

isTextEdit

parentTextEdit

  

Methods

contains( )

removeAttribute( )

setAttribute( )

getAttribute( )

  

Get Dynamic HTML: The Definitive Reference 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.