YouTip LogoYouTip

Prop Input Time Name

HTML DOM Input Time name Property

HTML DOM Input Time name Property

 Logo

- Learning is not just about technology, but also about dreams!

JavaScript Reference

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

Explore

  • Development Tools
  • Scripts
  • Programming Languages
  • Software
  • Computer Science
  • Scripting Languages
  • Web Design and Development
  • Web Services
  • Web Service
  • Programming

Input Time name Property

Up Arrow Input Time Object

Example

Get the name of the time field:

var x = document.getElementById("myTime").name;

x output result is:

usr_time

Try it yourself Β»


Definition and Usage

The name property is used to set or return the value of the name attribute of a time field.

The name attribute is typically used as an identifier for submitting form data to the server, or as a reference identifier for JavaScript on the client side.

Note: The name attribute must be set in order for data to be submitted to the server after the form is submitted.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The name property is supported by all major browsers.

Note: Internet Explorer and Firefox do not support the HTML <input> element with the type="time" attribute.


Syntax

Return the name property:

timeObject.name

Set the name property:

timeObject.name=name

Property Values

Value Description
name Specifies the name of the time field

Technical Details

Return Value: A string, representing the name of the time field

More Examples

Example

Change the name of the time field:

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

Try it yourself Β»


Related Pages

HTML Reference: HTML <input> name Attribute


Up Arrow Input Time Object

← Prop Input Time FormProp Input Time Disabled β†’

YouTip © 2024-2026 | Home | Learn Technology, Build Dreams!

All content is for educational and learning purposes only.