Set IFrame allowfullscreen with javascript
24,966
iframe.setAttribute('allowFullScreen', '')
Author by
Danny Fox
Updated on July 05, 2022Comments
-
Danny Fox almost 2 years
I tried to set allowfullscreen attribute to the iframe, but it doesn't work:
iframe.allowFullScreen = true
I checked it with chrome -> inspect element, but the iframe has no allowfullscreen attribute, after this code.
Thanks in advance,