EN
JavaScript - why my Google Chrome web browser doesn't display YouTube videos in ifame?
1
answers
2
points
I have noticed very strange behaving in my Google Chrome web browser. When I try to put in ifame YouTube video on my webpage it displays error about disabled JavaScript. The thing is so strange because in other web browsers, ifame works.
Error:
An error occurred.
Try watching this video on www.youtube.com, or enable JavaScript if it is disabled in your browser.
Preview:
Source code:
// ONLINE-RUNNER:browser;
<!doctype html>
<html>
<body>
<iframe src="https://www.youtube.com/embed/zd0nQF5VRjY"
style="border: none; width: 80%; height: 250px"
scrolling="no">
</iframe>
</body>
</html>
1 answer
5
points
I had the same issue when I had disabled JavaScript by default in my Google Chrome web browser.
It was time when I was giving specific JavaScript execution permissions for specific websites (I mean I was enabling JavaScript only on specific websites).
0 comments
Add comment