Image button OnClientClick() event issue in ASP.net using C#
<p>I am having one Web page(First window). In that page I am having one image button, Which is having OnClientClick event. In that event I call a javascript method as <code>OpenHelpWindow()</code> i.e. </p>

<pre><code>OnClientClick ="OpenHelpWindow()"
</code></pre>

<p>Now whenever I clicked that image button the event in the javascript method<code>(OpenHelpWindow())</code> will get trigger and it will open the New help web window. Its working properly but the problem is, When I press Enter key then also the event will get fire and show me the help window.<br/><br/> Now I want to stop the second window (Help window) opening when the Enter key pressed. </p>

<p>How can I resolve this problem?</p>

<p>My Code for the first web window Image button is,</p>

<h1>.aspx code</h1>

<pre><code>.
.
&lt;asp:ImageButton ImageUrl="~/Images/help.png" runat="server" ID="ibtnHelp"
                                AlternateText="Help" ToolTip="Help"  OnClientClick="OpenHelpWindow()" /&gt;
.
.
</code></pre>

<h1>Javascript code for OpenHelpWindow() is</h1>

<pre><code>function OpenHelpWindow()
{
var newWin = null;
try
 {
    newWin = window.open("../Common/OpenHelpUrl.aspx");
    newWin.focus();
    return false;
 }
finally
 {
    newWin = null;
 }
}
</code></pre>
