javascript code to prevent screensaver from starting
        Posted  
        
            by 
                gertjan
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by gertjan
        
        
        
        Published on 2010-12-21T21:47:40Z
        Indexed on 
            2010/12/21
            21:54 UTC
        
        
        Read the original article
        Hit count: 184
        
Hi all,
I am completely new to javascript programming and I have a question that I didn't manage to find an answer for anywhere.
I have recently put together a simple slideshow to view the photos remotely that I host on my home computer. This by itself works fine. The problem I run into is that when I'm viewing photos I don't interact with the hardware, which after some time causes the monitor to switch off. This is particularly annoying when watching photos on my mobile phone.
My question is: is there a way to prevent this from happening? I am thinking in the direction of faking a mouse or other event every time I refresh the photo, but I have no clue how to do that and if it is possible.
Any help is greatly appreciated!
© Stack Overflow or respective owner