Answer the question
In order to leave comments, you need to log in
Why doesn't the video play when I click the play button?
When trying to customize a video from YouTube (changing the play button + text), it was displayed in the console.
Uncaught ReferenceError: playVideo is not defined
https://codepen.io/malinosky/pen/aGoKEa
document.getElementById("ArrowBtn").addEventListener("click", playVideo);
function arrowVideo() {
document.getElementById("ytplayer").classList.add('block');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question