Hi there
I have a html page in which i have flash video and youtube video if borwser detect flash player the flash player vidoe run but if flash player not detect than it play youtube vidoe and the problem is that the iframe not open the youtube video it says Refused to display 'http://www.youtube.com/watch?v=VIDEO-IDfeature=youtu.be' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

"I have remove the video id because i don't want to show the video that why i remove the video id write VIDEO-ID"

I search for this error and find solution to add header at the top of the page but the probelm is that my page is .html and i cann't convert it into php i want to add this header with the help of javascript tell me what should i do now. why it give error of sameorigin means it open the main page inside the iframe

<?php
header('X-Frame-Options: GOFORIT');
?>

waiting for your reply

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.