I have this youtube code:
<iframe width=”970″ height=”582″ src=”EMBED CODE FROM YOUTUBE” frameborder=”0″ allowfullscreen></iframe>
Now, I want to do some action when the user clicks on the video (when he clicks play).
I tried to get the iframe click, embed click.. Nothing works. What am I doing wrong?
Thanks!
You can’t do anything within
iframe, which is not from the same site. It’s forbidden. Read about same origin policy.