The WakeLock interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running.
This page uses Wake Lock to keep your screen awake.
The page engages Wake Lock on load, you just need to stay on this page.