How to Detect When a YouTube Video Finishes Playing with JavaScript?

John Au-Yeung
2 min readFeb 10, 2024
Photo by Jakob Owens on Unsplash

Sometimes, we want to detect when a YouTube video finishes playing with JavaScript.

In this article, we’ll look at how to detect when a YouTube video finishes playing with JavaScript.

Detect When a YouTube Video Finishes Playing with JavaScript

--

--