TimeRanges
Return to: HTML DOM Level 5 index

Used to store the errors from media resources.

Platform Support

Mozilla Chrome Safari Opera IE Netscape
3.5+ no 4.0.5+ 10.5+ 9.0+ no

Constructors

Constructor Action Mozilla Chrome Safari Opera IE Netscape
TimeRanges Constructor() : TimeRanges
Error for time ranges.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no

TimeRanges() : TimeRanges

Error for time ranges.

Returns
TimeRanges

Visibility
internal

Properties

Property Action Mozilla Chrome Safari Opera IE Netscape
length : Number
The number of ranges represented by the object.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no
Availability

WhatWG

Functions

Method Action Mozilla Chrome Safari Opera IE Netscape
start(Number index) : void
Returns the position of the start of the indexth range represented by the object, in seconds measured from the start of the timeline that the object covers.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no

Parameters
Number index The value of index.

Availability

WhatWG

end(Number index) : void
Returns the position of the end of the indexth range represented by the object, in seconds measured from the start of the timeline that the object covers.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no

Parameters
Number index The value of index.

Availability

WhatWG

References

TimeRanges

Availability

JavaScript 1.2|WhatWG

text_javascript aptana_docs