title: javascript code to prevent screensaver from starting
body: <p>I am completely new to javascript programming and I have a question that I didn't manage to find an answer for anywhere.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Any help is greatly appreciated!</p>