Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting youtube.com to load in iFrame

Can't get Youtube's homepage, or any other youtube.com prefixed URL to load in an iFrame. Any suggestions or insights?

Code:

<iframe src="http://youtube.com" frameborder="0" width="1020" height="560"
 horizontalscrolling="no" verticalscrolling="yes"></iframe>
like image 995
aethergy Avatar asked Jan 02 '12 08:01

aethergy


2 Answers

Youtube does not allow embedding. Only http://www.youtube.com/embed/* is allowed, which is for HTML5 videos.

like image 130
sascha Avatar answered Oct 18 '22 21:10

sascha


youtube.com cannot be loaded in an iframe.

A possible duplicate: See this

like image 29
hrishikeshp19 Avatar answered Oct 18 '22 20:10

hrishikeshp19