getCurrentTime method
Gets the current time, in seconds, relative to the start time for the current SVG document fragment.
![]() ![]() |
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
- Scalable Vector Graphics: Document Structure, Section 5.11.2
See also
Show:

