I'm tring to detect a click on a iframe element, I have been searching for an anser, but I cant find any anser. In the following code, you can see that the button works, with the oneclick(), but the iframe doesn't.
<iframe onclick="starttime()" src="https://player.vimeo.com/video/527719365" width="50%" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>
<button onclick="starttime()">Agenda tu llamada</button>
<p id="demo" style="visibility:hidden;">Hello World</p>
<script>
function starttime(){
document.getElementById("demo").style.visibility = 'visible';
}
</script>