Iframe / Javascript Check if Youtube video is complete
3 answers
If your page has iframe
, and its attribute src
contains a URL that does not have the same domain, protocol, or port as the container page, you cannot access it document
due to the Same Origin Policy .
You can watch on YouTube by supporting postMessage()
.
If you own the content iframe
, then get it iframe.contentDocument
where you can access it iframe
document
.
0
source to share