title: How to check if a button has been clicked using javascript?
body: <p>Here i need to check a button click using javascript i.e)if button A is clicked i will call a javascript function and if button B is clicked i will call another javascript function.</p>
  
  <pre><code>if(document.getElementById('imgBTNExportPPT').clicked == true)
  {
     ShowDialogExportPPTPOPUP();
  }
  else if(document.getElementById('btnShowModal').clicked == true)
  {
     ShowDialogPrintPOPUP();
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>      &lt;asp:ImageButton ID="imgBTNExportPPT" runat="server" Width="15" Height="15" border="0"
                                                              OnClick="imgBTNExportPPT_Click" ImageUrl="~/Images/PPT_icon.png" /&gt;
    &lt;asp:ImageButton ID="btnShowModal" runat="server" Width="15" Height="15" border="0"
                                                           ImageUrl="~/Images/Print_icon.png" onclick="btnShowModal_Click"  /&gt;
  </code></pre>
  
  <p>is it possible??any suggestion??</p>