I have a iframe in my web page of a video from another site but when i click play or anywhere in the iframe space it opens a link to the site with the video of it.
I'm trying to make a site for playing series and i want to use iframe to show the video from another site rather than downloading it.
I've tried everything but i viewed the other sites source code and it seems it has some java code i suppose that's causing the issue preventing the iframe from working.
http://entervideo.net/watch/94c96f7dc0bd33c
that's the link, could you kindly inspect the source code first.
(Down below is the java script code from the link and I think it's causing the problem)
function inIframe () { try { return window.self !== window.top; } catch (e) { return true; } } console.log(document.referrer); console.log(inIframe()); //if(!document.referrer&&inIframe()) document.write('Please remove sandbox tags on the iframe.'); if(document.referrer||!inIframe()){ var element = document.getElementById("ptc"); element.parentNode.removeChild(element); console.log('deleting'); }i want it to play the video on my web page when i click on the play button on the control rather than it opening the link to the other site.
Aucun commentaire:
Enregistrer un commentaire