title: Handling standby on iPad using Javascript
body: <p>Regarding iPad events, how to determine if/when the iPad is changing from an awake state to a standby state?</p>
  
  <p>What I would like to do is put my Mobile-Safari web app in a locked state whenever the iPad becomes inactive/standby and ask for a PIN when it becomes awake again.</p>