is it possible to execute a Java Script function once the Yt video has been started with a click?
My code looks like this:
<html>
<head><title>onclick event demo</title>
</head>
<body>
<h3>onclick event demo</h3>
<p>Fires when the element is clicked.</p>
<embed
onclick="VideoStart()"
src="https://www.youtube.com/embed/qK9v-VFfdY0?start=478" style="border:1px solid;"
>
</body>
</html>
<script>
function VideoStart(){
***code executed when clicking on the Yt-Video***
}
</script>
But for some reason nothing happens when I start or stop the YT video with a mouse click. Could someone please help me with this. I would appreciate an answer.