HTML DOM Time Object
Time Object
The Time object represents an HTML <time> element.
Access a Time Object
You can access a <time> element by using getElementById():
Create a Time Object
You can create a <time> element by using the document.createElement() method:
Time Object Properties
Property | Description |
---|---|
dateTime | Sets or returns the value of the datetime attribute in a <time> element |
Standard Properties and Events
The Time object also supports the standard properties and events.
Related Pages
HTML reference: HTML <time> tag
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.