HTMLTimeElement : HTMLElement
Return to: HTML DOM Level 5 index

Represents either a time on a 24 hour clock, or a precise date in the proleptic Gregorian calendar, optionally with a time and a time-zone offset.

Constructors

Constructor Action Mozilla Chrome Safari Opera IE Netscape
HTMLTimeElement Constructor() : HTMLTimeElement
Creates an instance of the HTMLTimeElement.
Show Details no no no no no no

HTMLTimeElement() : HTMLTimeElement

Creates an instance of the HTMLTimeElement.

Returns
HTMLTimeElement

Visibility
internal

Properties

Property Action Mozilla Chrome Safari Opera IE Netscape
dateTime : String
Gives the date or time being specified.
Show Details no no no no no no
Availability

WhatWG

pubDate : Boolean
Indicates that the date and time given by the element is the publication date and time of the nearest ancestor article element, or, if the element has no ancestor article element, of the document as a whole.
Show Details no no no no no no
Availability

WhatWG

Returns a Date object representing the specified date and time.
Show Details no no no no no no
Availability

WhatWG

Inherited Functions

Method Action Mozilla Chrome Safari Opera IE Netscape
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the Element nodes with the specified classNames.
Show Details 1.9+ 5.0+ 3.1+ 9.51+ no no

Parameters
String classNames (one-or-more)A string representing the class name(s) of the elements to return. Multiple class names should be separated by spaces.

Returns
NodeList

Using getElementsByClassName

                        	                    document.getElementById("useCases").getElementsByClassName("question");

Would return a NodeList of all elements inside the element with the id "useCases" to which the class "question" applies.

                        	                    document.getElementById("useCases").getElementsByClassName("question issue");

Would return a NodeList of all elements inside the element with the id "useCases" to which both the classes "question" and "issue" apply.

Remarks

Returns a list of child elements to which the specified className applies. The returned NodeList is sorted in tree order (the order the elements were found during a depth-first preorder traversal through the node tree).

See Also

Document.getElementsByClassName|Element.getElementsByClassName|HTMLDocument.getElementsByClassName

Availability

HTML 5|W3C|W3C

References

HTMLTimeElement

Availability

JavaScript 1.2|WhatWG

text_javascript aptana_docs