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,
Set to true if the <iframe> can activate fullscreen mode by calling the requestFullscreen() method. Note: This attribute is considered a legacy attribute and redefined as allow="fullscreen" .
Overview. The widget is considered deprecated. If you need to use an IFrame, consider the "IFrame Component" widget The Iframe can be used to embed websites in the client.
Allows the HTML Component to be put into full screen mode. By default, users cannot place the HTML Component in full screen mode. Calling this function allows a user to place the HTML Component in full screen mode.
Except that there is a higher resource demand and other performance issues there is no fixed limitation for those tags on one page.
iframe.setAttribute('allowFullScreen', '')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With