Latest web development tutorials

HTML DOM Input Time name attribute

Input Time Object Reference Input Time Object

Examples

Get the name of the time field:

var x = document.getElementById ( "myTime") name.;
x The output is:
usr_time

try it"

Definition and Usage

name attribute is used to set or return the name attribute value time field.

name attribute is typically used to server identifiers submitted form data, or the client as a Javascript reference identification.

Note: Only the name attribute is set, in the form submission to submit data to the server.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support name attribute.

Note: Internet Explorer or Firefox browser does not support type = "time" attribute of the HTML <input> elements.


grammar

Returns the name attribute:

timeObject .name

Setting name attribute:

timeObject .name = name

Property Value

value description
name It describes the name of the time field

technical details

return value: String representing the name of the time field


More examples

Examples

Time modify the name field:

. Document.getElementById ( "myTime") name = "newTimeName";

try it"


Related Pages

HTML Reference Manual: HTML <the INPUT> name attribute


Input Time Object Reference Input Time Object