title: Alternative of onclick for html5
body: <pre><code> &lt;div id="btnSideToggle" onclick="Viewer.toggleThumbnails();"&gt;&lt;img src="assets/pgThumbs.png"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Due to CSP restriction on Firefox OS Marketplace i cant use onclick on html5 page, can anyone please tell me alternative of onclick for HTML5</p>
  
  <p>here is the full code :
  <a href="http://jsfiddle.net/edd4225/v65qZ/" rel="nofollow">http://jsfiddle.net/edd4225/v65qZ/</a></p>