I have a text box and a button
<div class="TextField Large">
<input type="text" name="q" id="SearchBox" />
</div>
<div style="height: 40px; text-align: right; position: absolute; top: 0px; right: 0px;">
<input type="button" value="Search" class="Button" onclick="Search()" />
</div>
Basically you enter a text in the textbox and when you click on the Search button a JavaScript function Search() is called.
How can I add the possibility that when the user enters a text and press “Enter” on the keyboard the Search is executed?
That’s all