The onseeking attribute handles the media seeking event. It fires when a seek starts — the Boolean seeking property becomes true and the media looks for a new playback position.
Use it on <video> or <audio>. Scrub the timeline or set currentTime. Pair with onseeked (seek finished). Prefer addEventListener("seeking", …).
Baseline · Widely available.
Stable across modern browsers since about July 2015. Not deprecated. Not cancelable; does not bubble.
Inline handlers discouraged.
MDN: prefer addEventListener over inline on* attributes. Study onseeking to recognize it in markup.
Syntax
HTML Syntax
syntax.html
<video onseeking="script">
script runs when a seek begins. Same idea on <audio>. Preferred: element.addEventListener("seeking", handler).
seeked marks when the seek completed (seeking → false).
UI pattern: show a busy label, then clear it on seeked.
On fast local files, both can feel nearly instant.
Edge Cases & Pitfalls
Seek events are about position changes — not play/pause.
pair
seeking ≠ seeked
Start vs finish. Use seeked when the new position is ready.
target
Listen on the media element
The event does not bubble. Put the handler on <video> / <audio>.
speed
Can be nearly instant
Cached short clips may fire seeking then seeked so fast you barely see the middle state.
vs time
Not timeupdate
timeupdate fires during normal playback progress. seeking is for intentional jumps.
style
Prefer listeners
Inline on* attributes mix concerns. Use addEventListener in production code.
Compatibility
Browser Support
onseeking is a media event handler for seek start on video/audio. Prefer addEventListener in apps.
✓ Baseline · Widely available
onseeking
Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera support the media seeking event.
97%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet Explorer9+
Supported*
seekingWidely supported
Bottom line: *Safe on modern browsers. Pair with seeked for complete seek UI feedback.
Remember
Key Takeaways
Role: fire when a seek to a new position starts.
Trigger: scrub controls or set currentTime.
Pair with:seeked when the seek completes.
Target: media element (no bubbling).
One line:onseeking marks the start of a media seek — show busy UI, then clear it on seeked.
Frequently Asked Questions
It is an event handler for the seeking event on media elements. That event fires when a seek starts — the media is looking for a new playback position and the seeking property becomes true.
seeking fires when the seek begins. seeked fires when the seek finishes and seeking becomes false. Use them as a start/end pair for seek UI.
Scrub the timeline in the media controls, or set media.currentTime in JavaScript (for example video.currentTime = 5).
No. It is not cancelable and does not bubble. Listen on the <video> or <audio> element itself.
Prefer addEventListener("seeking", handler). MDN discourages inline HTML event handler attributes.
Show a “seeking…” label, pause related UI, or log seek starts. Pair with seeked to clear the label when the new position is ready.