vanminhquangtri
vanminhquangtri

Reputation: 335

How to run function before fullscreenchange in Javascript

I have a function in Javascript that need to be called BEFORE event fullscreenchange occurs.

As stated on MDN, The fullscreenchange event is fired immediately AFTER the browser switches into or out of fullscreen mode.

Is there's any thing like this:

document.addEventListener('beforefullscreenchange', handlerFunction);

Thank you

Upvotes: 2

Views: 128

Answers (0)

Related Questions