Open In App

HTML | DOM Input Time min Property

Last Updated : 29 Aug, 2022
Comments
Improve
Suggest changes
48 Likes
Like
Report

The DOM Input Time min Property is used to set or return the value of the min attribute of a number field. The min attribute defines the minimum time for an input Time field. 

Syntax: 

  • It returns the min property.
timeObject.min
  • It is use to set the min property.
timeObject.min =  hh:mm:ss.ms

Property values: 

  • hh:mm:ss.ms - It is used to specifies a minimum time allowed for the time field.
  • hh- It specify the hour.
  • mm- It specify the minutes.
  • ss- It specify the seconds.
  • ms- It specify the milliseconds.

Return Value: It returns a string value which represent the minimum time allowed for a Time field. 

Example-1: This example illustrates how to return the Input time min Property. 

Output: Before Clicking On Button:

  

After Clicking On Button :

  

Example-2: This Example illustrates how to set the Property. 

Output: Before Clicking On Button:

  

After Clicking On Button:

  

Supported Browsers: The browser supported by DOM input Time min property listed below:

  • Google Chrome 20
  • Edge 12
  • Firefox 57
  • Opera 10
  • Safari 14.1

Explore