HTML oncanplaythorugh attribute

HTML oncanplaythorugh attribute: The HTML oncanplaythorugh attribute event happens when the web browser evaluates it can play through the specified audio/video without having to stop for buffering. And the oncanplaythrough attribute is part of the Event Attribute.

HTML oncanplaythorugh attribute

This attribute can be applied to <audio> and <video> elements. And the HTML4 does not support <audio> and <video> tags.

Syntax: <element oncanplaythrough=”Script”>



Browser Support

This attribute was supported by different types of browsers.

  • Chrome
  • Firefox
  • InternetExplorer-9.0
  • Safari
  • Opera