setCurrentTime method
Sets the new current time for this SVG document fragment.
![]() ![]() |
Syntax
var retval = SVGSVGElement.setCurrentTime(seconds);
Parameters
- seconds [in]
-
Type: float
The new current time, in seconds, relative to the start time for the current SVG document fragment.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
- Scalable Vector Graphics: Document Structure, Section 5.11.2
Remarks
If you call the setCurrentTime method before the document timeline has begun (for example, by a script that is running in a script element before the SVGLoad event for the document is dispatched), the value of seconds during the last call to setCurrentTime is the current time.
See also
Show:

