duration property
Gets or sets the duration in seconds for the media.
Important This property is not supported in Internet Explorer 11 on Windows 7.
This property is read/write.
![]() |
Syntax
| JavaScript |
|---|
object.duration = seconds seconds = object.duration |
Property values
Type: double
The duration of the media in seconds.
Exceptions
| Exception | Condition |
|---|---|
|
|
|
|
Remarks
The default value of duration is NaN.
See also
Show:
