Make input take action when I press enter

Proof

New Member
I'm trying to make the \[code\]<input>\[/code\] do the \[code\]onclick=GoLargeSearch\[/code\] function using the onkeydown\[code\]<div id="s4-searcharea-large"> <input accessKey="S" onkeydown="CoreInvoke('LargeSearchKeyDownGoSearch', event)" id="txtLargeSearchTerm" runat="server" class="ms-sharepointsearchtext" title="Enter search words" value="" maxLength="255" size="25" type="text" name="SearchString" /> <div class="ms-searchimage"> <span style="position: relative; width: 27px; display: inline-block; height: 27px; overflow: hidden" class="s4-clust"> <a style="width: 27px; display: inline-block; height: 27px" id="onetIDGoSearchLarge" title="Search" onclick="GoLargeSearch(document.getElementById('<%= txtLargeSearchTerm.ClientID %>'), '<%= URLObj.URL %>')" href="javascript:"> <img style="border-style: none; border-color: inherit; border-width: 0px; position: absolute; top: 0px; left: 0px;" alt="Search" src="http://stackoverflow.com/_layouts/GP_Custom/images/largesearch.png" /> </a> </span> </div></div>\[/code\]What should I do to make it take that action when the user presses enter?
 
Back
Top