I have a htmlpage with three inputfields and a button. It looks like this:
i don't think it will help, but anyhow:
<table>
<tr>
<td>Start:</td>
<td><input ID="txtStart" type="text" /></td>
</tr>
<tr>
<td>Eind:</td>
<td><input ID="txtEind" type="text" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" onclick="javascript:alert('test');"/></td>
</tr>
</table>
<table>
<tr>
<td>Station:</td>
<td><input ID="txtStation" type="text" /></td>
</tr>
</table>
If i enter text in textbox 3 and i press enter, then button 1 fires an event(javascript:alert("this is a test");). How can i disable this? The button should only fire an event when i click it. It should not be related to textbox 3...
I think it has something to with postback or something? Or maybe a defaultbutton?
Any help welcome :)