<input type="text" id="txtSearch" önkeypress="searchKeyPress(event);" />
function searchKeyPress(e) { // look for window.event in case event isn't passed in if (window.event) { e = window.event; } if (e.keyCode == 13) { alert('Enter key pressed on the Text Box control'); } }
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)