title: Open javascript popup on image button click
body: <p>I'm trying to open popup window when i click on image button in asp.net website, but when i click on image button the pop up window shows up for like one seconds and then disappears.when i use  tag, it shows the pop up window, but when i try with the other way, it disappears. Am i missing something in the code.</p>
  
  <pre><code> &lt;div id="cover"&gt;&lt;/div&gt;
   &lt;div id="dialog"&gt;
  My Dialog Content
  &lt;br&gt;&lt;input type="text"&gt;
  &lt;br&gt;&lt;input type="button" value="Submit"&gt;
  &lt;br&gt;&lt;a href="#" onclick="closePopUp('dialog');"&gt;[Close]&lt;/a&gt;
  &lt;/div&gt;
  &lt;a href="#" onclick="showPopUp('dialog');"&gt;Show&lt;/a&gt;
  &lt;asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/slika/PLUS.gif" onClientClick="showPopUp('dialog');"  /&gt;
  </code></pre>