requestFullscreen method
The Element.requestFullscreen()
method issues an asynchronous request to make the element be displayed in
fullscreen
mode.
It's not guaranteed that the element will be put into full screen mode. If
permission
to enter full screen mode is granted, the returned Promise
will resolve
and the element will receive a Element.fullscreenchange_event
event to
let it know that
it's now in full screen mode. If permission is denied, the promise is
rejected and the
element receives a Element.fullscreenerror_event
event instead. If the
element has been
detached from the original document, then the document receives these
events instead.
Implementation
external JSPromise<JSAny?> requestFullscreen([FullscreenOptions options]);