getCurrentTime
TOC
Collapse the table of content
Expand the table of content

getCurrentTime method

Gets the current time, in seconds, relative to the start time for the current SVG document fragment.

Scalable Vector Graphics: Document Structure, Section 5.11.2Internet Explorer 9

 

Syntax

var retval = SVGSVGElement.getCurrentTime();

Parameters

This method has no parameters.

Return value

Type: Floating-point

The current time, in seconds, relative to the start time for the current SVG document fragment. If you call the getCurrentTime method before the document timeline has begun (for example, by a script that is running in a script element before the document's onload event is dispatched), this method returns 0.

Standards information

See also

SVGSVGElement

 

 

Show:
© 2016 Microsoft