Getting youtube.com to load in iFrame
14,060
Solution 1
Youtube does not allow embedding. Only http://www.youtube.com/embed/* is allowed, which is for HTML5 videos.
Solution 2
youtube.com cannot be loaded in an iframe.
A possible duplicate: See this
Related videos on Youtube
Author by
aethergy
Updated on June 04, 2022Comments
-
aethergy almost 2 years
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>