title: How to use mobile touch events with pure javascript?
body: <p>What is the syntax for mobile touch events in javascript? I tried:  </p>
  
  <p><code>window.document.body.ontouchstart = function() { alert(); }</code></p>
  
  <p>and  </p>
  
  <p><code>window.document.body.touchstart = function() { alert(); }</code></p>
  
  <p>It doesn't give any error. And nothing happens on touching the webpage. It seems like <code>addEventListener</code> is the way to go. But why doesn't <code>window.document.body.ontouchstart</code> directly work?</p>