Hidden — hidden data for client/server communication
Inherits from Input, HTMLElement
Hidden inherits properties from Input and HTMLElement and defines or overrides the following:
A read/write string that specifies arbitrary data passed to the web server when the form containing the Hidden object is submitted. The initial value of
valueis specified by the
valueattribute of the
<input>tag that defines the Hidden object.
A Hidden element is created with a
<form> ... <input type="hidden" // Specifies that this is a Hidden element [ name="
name" ] // A name you can use later to refer to this element // Specifies the name property [ value="
value" ] // The value transmitted when the form is submitted // Specifies the initial value of the value property > ... </form>
The Hidden element is an invisible form element that allows arbitrary data to be transmitted to the server when the form is submitted. You can use a Hidden element when you want to transmit information other than the user’s input data to the server.