www.fgks.org   »   [go: up one dir, main page]

INPUT type=hidden Element | input type=hidden Object

Transmits state information about client/server interaction.

Members Table

The following table lists the members exposed by the input type=hidden object.

Attributes/Properties
AttributePropertyDescription
ariaBusy New for Windows Internet Explorer 8  Sets or retrieves the busy state of this element.
ariaChecked New for Internet Explorer 8  Sets or retrieves the checked state of this element.
ariaDisabled New for Internet Explorer 8  Sets or retrieves the disabled state of this element.
ariaExpanded New for Internet Explorer 8  Sets or retrieves the expanded state of this element.
ariaHaspopup New for Internet Explorer 8  Sets or retrieves a value indicating whether this element may display a pop-up window.
ariaHidden New for Internet Explorer 8  Sets or retrieves the hidden state of this element.
ariaInvalid New for Internet Explorer 8  Sets or retrieves the invalid state of this element.
ariaLevel New for Internet Explorer 8  Sets or retrieves the level of this element.
ariaMultiselect New for Internet Explorer 8  Sets or retrieves the multiple-selection state of this element.
ariaPosinset New for Internet Explorer 8  Sets or retrieves the current position of an item within a set.
ariaPressed New for Internet Explorer 8  Sets or retrieves the pressed state of a button that can be toggled.
ariaReadonly New for Internet Explorer 8  Sets or retrieves the read-only state of this element.
ariaRequired New for Internet Explorer 8  Sets or retrieves the form-completion requirement of this element.
ariaSecret New for Internet Explorer 8  Sets or retrieves the secret state of this element.
ariaSelected New for Internet Explorer 8  Sets or retrieves the selection state of this element.
ariaSetsize New for Internet Explorer 8  Sets or retrieves the set size of this element.
ATOMICSELECTION Specifies whether the element and its contents must be selected as a whole, indivisible unit.
attributes New for Internet Explorer 8  Retrieves a collection of attributes of the object.
canHaveHTML Sets or retrieves the value indicating whether the object can contain rich HTML markup.
CLASSclassName Sets or retrieves the class of the object.
DATAFLDdataFld Sets or gets which field of a given data source, as specified by the dataSrc property, to bind to the specified object.
DATASRCdataSrc Sets or gets the source of the data for data binding.
defaultValue Sets or retrieves the initial contents of the object.
form Retrieves a reference to the form that the object is embedded in.
HIDEFOCUShideFocus Sets or gets the value that indicates whether the object visibly shows that it has focus.
IDid Retrieves the string identifying the object.
isContentEditable Gets the value that indicates whether the user can edit the contents of the object.
isDisabled Gets the value that indicates whether the user can interact with the object.
isMultiLine Retrieves the value indicating whether the content of the object contains one or more lines.
isTextEdit Retrieves whether a TextRange object can be created using the object.
LANGlang Sets or retrieves the language to use.
LANGUAGElanguage Sets or retrieves the language in which the current script is written.
NAMEname Sets or retrieves the name of the object.
nextSibling Retrieves a reference to the next child of the parent for the object.
nodeName Retrieves the name of a particular type of node.
nodeType Retrieves the type of the requested node.
nodeValue Sets or retrieves the value of a node.
offsetParent Retrieves a reference to the container object that defines the offsetTop and offsetLeft properties of the object.
outerHTML Sets or retrieves the object and its content in HTML.
outerText Sets or retrieves the text of the object.
parentElement Retrieves the parent object in the object hierarchy.
parentNode Retrieves the parent object in the document hierarchy.
parentTextEdit Retrieves the container object in the document hierarchy that can be used to create a TextRange containing the original object.
previousSibling Retrieves a reference to the previous child of the parent for the object.
readyState Retrieves a value that indicates the current state of the object.
recordNumber Retrieves the ordinal record from the data set that generated the object.
role New for Internet Explorer 8  Sets or retrieves the role for this element.
scopeName Gets the namespace defined for the element.
sourceIndex Retrieves the ordinal position of the object, in source order, as the object appears in the document's all collection.
STYLE Sets an inline style for the element.
tagName Retrieves the tag name of the object.
tagUrn Sets or gets the Uniform Resource Name (URN) specified in the namespace declaration.
TYPEtype Retrieves or initially sets the type of input control represented by the object.
uniqueID Retrieves an autogenerated, unique identifier for the object.
UNSELECTABLE Specifies that an element cannot be selected.
VALUEvalue Sets or retrieves the default or selected value of the control.
Behaviors
BehaviorDescription
clientCaps Provides information about features supported by Internet Explorer, as well as a way for installing browser components on demand.
download Downloads a file and notifies a specified callback function when the download is complete.
homePage Contains information about a user's homepage.
httpFolder Contains scripting features that enable browser navigation to a folder view.
saveFavorite Enables the object to persist data in a favorite Web site.
saveHistory Enables the object to persist data in the browser history.
saveSnapshot Enables the object to persist data when a Web page is saved.
time Provides an active timeline for an HTML element.
time2 Provides an active timeline for an HTML element or group of elements.
userData Enables the object to persist data in user data.
Collections
CollectionDescription
attributes Retrieves a collection of attributes of the object.
behaviorUrns Returns a collection of Uniform Resource Name (URN) strings identifying the behaviors attached to the element.
Events
EventDescription
onactivate Fires when the object is set as the active element.
onafterupdate Fires on a databound object after successfully updating the associated data in the data source object.
onbeforedeactivate Fires immediately before the activeElement is changed from the current object to another object in the parent document.
onbeforeeditfocus Fires before an object contained in an editable element enters a UI-activated state or when an editable container object is control selected.
onbeforeupdate Fires on a databound object before updating the associated data in the data source object.
oncontrolselect Fires when the user is about to make a control selection of the object.
ondeactivate Fires when the activeElement is changed from the current object to another object in the parent document.
onerrorupdate Fires on a databound object when an error occurs while updating the associated data in the data source object.
onfocus Fires when the object receives focus.
onlosecapture Fires when the object loses the mouse capture.
onmove Fires when the object moves.
onmoveend Fires when the object stops moving.
onmovestart Fires when the object starts to move.
onpropertychange Fires when a property changes on the object.
onreadystatechange Fires when the state of the object has changed.
onresizeend Fires when the user finishes changing the dimensions of the object in a control selection.
onresizestart Fires when the user begins to change the dimensions of the object in a control selection.
ontimeerror Fires whenever a time-specific error occurs, usually as a result of setting a property to an invalid value.
Methods
MethodDescription
addBehavior Attaches a behavior to the element.
applyElement Makes the element either a child or parent of another element.
attachEvent Binds the specified function to an event, so that the function gets called whenever the event fires on the object.
clearAttributes Removes all attributes and values from the object.
cloneNode Copies a reference to the object from the document hierarchy.
componentFromPoint Returns the component located at the specified coordinates via certain events.
createTextRange Creates a TextRange object for the element.
detachEvent Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
fireEvent Fires a specified event on the object.
getAdjacentText Returns the adjacent text string.
getAttribute New for Internet Explorer 8  Retrieves the value of the specified attribute.
getAttribute Retrieves the value of the specified attribute.
getAttributeNode Gets an attribute object referenced by the attribute.name property.
getExpression Retrieves the expression for the given property.
hasAttribute New for Internet Explorer 8  Determines whether an attribute with the specified name exists.
insertAdjacentElement Inserts an element at the specified location.
insertAdjacentHTML Inserts the given HTML text into the element at the location.
insertAdjacentText Inserts the given text into the element at the specified location.
mergeAttributes Copies all read/write attributes to the specified element.
normalize Merges adjacent TextNode objects to produce a normalized document object model.
releaseCapture Removes mouse capture from the object in the current document.
removeAttribute New for Internet Explorer 8  Removes the given attribute from the object.
removeAttribute Removes the given attribute from the object.
removeAttributeNode Removes an attribute object from the object.
removeBehavior Detaches a behavior from the element.
removeChild Removes a child node from the object.
removeExpression Removes the expression from the specified property.
replaceAdjacentText Replaces the text adjacent to the element.
replaceChild Replaces an existing child element with a new child element.
setActive Sets the object as active without setting focus to the object.
setAttribute New for Internet Explorer 8  Sets the value of the specified attribute.
setAttribute Sets the value of the specified attribute.
setAttributeNode Sets an attribute object node as part of the object.
setCapture Sets the mouse capture to the object that belongs to the current document.
setExpression Sets an expression for the specified object.
swapNode Exchanges the location of two objects in the document hierarchy.
Objects
ObjectDescription
runtimeStyle Represents the cascaded format and style of the object that overrides the format and style specified in global style sheets, inline styles, and HTML attributes.
style Represents the current settings of all possible inline styles for a given element.
Styles
Style attributeStyle propertyDescription
:first-child:first-child Applies one or more styles to any element that is the first child of its parent.
behaviorbehavior Sets or retrieves the location of the Dynamic HTML (DHTML) behavior.
hasLayout Gets a value that indicates whether the object has layout.
layout-flowlayoutFlow Sets or retrieves the direction and flow of the content in the object.
text-autospacetextAutospace Sets or retrieves the autospacing and narrow space width adjustment of text.
text-underline-positiontextUnderlinePosition Sets or retrieves the position of the underline decoration that is set through the textDecoration property of the object.
word-wrapwordWrap Sets or retrieves whether to break words when the content exceeds the boundaries of its container.
zoomzoom Sets or retrieves the magnification scale of the object.

Remarks

This input type presents no control to the user, but sends the value of the value property with the submitted form.

This element is not rendered.

This element does not require a closing tag.

Standards Information

This object is defined in HTML 3.2 World Wide Web link.

See Also

input, input type=submit


MSDN Library
Web Development
HTML and CSS
HTML and DHTML Reference
Objects
input type=hidden