HTML DOM Time object
Time object
The Time object represents an HTML-lt;time-and-gt; element.
Access the Time object
You can use getElementById() to access the elements:
Create a Time object
You can use the document.createElement() method to create an element:
Time object properties
Attributes | describe |
---|---|
dateTime | 设置或返回 <time> 元素中 datetime 属性的值。 |
Standard properties and events
Time objects also support standard properties and events.
Related articles
HTML Reference Manual: HTML slt;time.gt; Tags