How to exit a full screen iFrame with a UI element?

Is there a way to exit an iFrame and to revert back to the web page that invoked the iFrame?
I like the iFrame to be full screen and avoid to have to create buttons next to a non-full screen iFrame.

Can this be done with today’s features?

Something like this:

  • Default: 0
  • Account Limitation: Business
  • Usage: Setting to 1 enables a close icon to close the iFrame.

You can just use the native document.exitFullscreen() ?

Issue resolved. Thanks for the input

1 Like