title: JavaScript Click Image Button
body: <p>This is my second question about clicking buttons in JavaScript but this one I'm really stuk on: I'm trying to click an image button with javascript however there's not much to go on as the source only gives this information about the image button</p>
  
  <pre><code>&lt;div id="claimBtnDv" style="bottom:-30px; position:absolute; right:0; margin-top:0;"&gt;
      &lt;input type="image" class="btnClaim" src="websitebuttonimage" onclick="alert('buttonclicked');"&gt;
  &lt;/div&gt;  
  </code></pre>
  
  <p>I tried to do <code>document.getElementById('claimBtnDv').click()</code> but no success , are there other methods to use?</p>