THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input Time Object


Input Time Object

The Information Time Object is new in HTML5.

The Input Time object speaks to a HTML <input> component with type="time".

Note: <input> components with type="time" are most certainly not upheld in Internet Explorer or Firefox.

Access an Input Time Object

You can get to a <input> component with type="time" by utilizing getElementById():

var x = document.getElementById("myTime"); Try it

Tip: You can likewise get to <input type="time"> via seeking through the elements accumulation of a form.

Create an Input Time Object

You can make a <input> component with type="time" by utilizing the document.createElement() method:

var x = document.createElement("INPUT");
x.setAttribute("type", "time");
Try it

Input Time Object Properties

Property Description
autocomplete Sets or returns the estimation of the autocomplete quality of a period field
autofocus Sets or returns whether a period field ought to consequently get center at the point when the page loads
defaultValue Sets or returns the default estimation of a period field
disabled Sets or returns whether a period field is handicapped, or not
form Returns a reference to the structure that contains the time field
list Returns a reference to the datalist that contains the time field
max Sets or returns the estimation of the maximum property of the time field
min Sets or returns the estimation of the min property of the time field
name Sets or returns the estimation of the name characteristic of a period field
readOnly Sets or returns whether the time field is perused just, or not
required Sets or returns whether the time field must be rounded out previously presenting a form
step Sets or returns the estimation of the progression quality of the time field
type Returns which kind of structure component the time field is
value Sets or returns the estimation of the esteem quality of a period field

Input Time Object Methods

Method Description
stepDown() Decrements the estimation of the time field by a predefined number
stepUp() Increments the estimation of the time field by a predefined number

Input Time Object Methods

Method Description
blur() Removes center from a content field
focus() Gives center to a content field

Standard Properties and Events

The Input Time object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Forms

HTML reference: HTML <input> tag

HTML reference: HTML <input> type attribute