How to prevent a monitor from sleeping while watching html 5 animation

Tom Kincaid picture Tom Kincaid · Feb 5, 2013 · Viewed 7.6k times · Source

Is there a way to prevent a monitor from sleeping while on a web page?

I have a page with an animation in html that doesn't require user interaction. The monitor can sleep during this and I want to prevent this.

When watching a video on Hulu, I notice that the monitor doesn't sleep so there must be some way to prevent this.

Answer

Tom Kincaid picture Tom Kincaid · Feb 21, 2013

The talk about Flash got me wondering, so I made a simple move that just loops a short flv file. Lo and behold when on this page, the monitor doesn't sleep! So all I need to do is make a little movie that's just the background color of the page and loop that on pages where I don't want the monitor to sleep.