DOM Properties

HTMLMediaElement.seeking

Reports whether seeking is in progress. Use seeking and seeked events for UI updates; changing currentTime does not mean seeking has finished. Example result: false.

Formal Syntax & Structure

html syntaxhtml
media.seeking

Return Value

boolean

Current media state or configured value.

Working Example

Example Snippethtml
<p>  Result:  <output id="result"></output></p><script>  const result = document.getElementById("result");  (async () => {  const media = document.createElement("audio"); document.body.append(media);  result.textContent = media.seeking;  })().catch(error => { result.textContent = "Error: " + error.name; });</script>
HTML Reference