Share via


end method

Returns the end of the time range by using the specified index.

 

Syntax

 retVal = object.end(index, endTime);

Parameters

  • index [in]
    Type: number

    The zero-based index of the item in the collection.

  • endTime [out, retval]
    Type: any

    The end position of the range, in seconds, from the beginning of the timeline.

Return value

This method does not return a value.

Exceptions

Exception Condition
IndexSizeError

The specified index is out of range. Versions earlier than Internet Explorer 10 will throw the exception as INDEX_SIZE_ERR.

 

Standards information

Remarks

Time ranges do not overlap. The end time is guaranteed to be less than the start of the range that follows it.

See also

Reference

start

length