title: Detect Mobile Devices and change HTML
body: <p>I am using this code to launch a popup form for people to contact us</p>
  
  <pre><code>&lt;a id="pinfo" class="ajax pullup cboxElement" href="#contact-form"&gt;Enquiries&lt;/a&gt;
  </code></pre>
  
  <p>However this popup form doesn't behave nicely on mobile browsers.</p>
  
  <p>I was wondering if I could use some javascript code to detect mobile browsers and point to an e-mail address link in the <code>href</code> instead of the popup form.</p>