onClick vs Enter Key

Giganews Newsgroups
Subject: onClick vs Enter Key
Posted by:  a…@unsu.com (amer…@iwc.net)
Date: Tue, 3 Jun 2008


I have a form with an image button like this:

<td><input type='text' name='search' id='search' value=''
size=30><BR><span class=body><center>Enter Email Address</span><BR></
<td><a href='#'><img src='./images/search.gif' border=0
onclick='return getCustomer(search.email.value);'></a><BR><BR></td>

Problem is that the mouse click works fine.  The enter key, once you
enter data and hit enter, nothing happens.  I want it to work with
both the enter key AND the mouse......

Can someone help me out here?