This code is not working for me in Firefox(V21.0) but works in IE(V9,V10) and Chrome (V 27.0.1453.110 m)
Method cal:
<input type="text" id="txt1" class="search-bar-input"
onkeyup="handleKeyPress('btn1');">
Method definition:
function handleKeyPress(searchButtonId) {
if (event.keyCode === 13) {
alert(event.KeyCode);
}
}
Error Message:
ReferenceError: event is not defined
if (event.keyCode === 13) {
Does anyone have any idea to solve the issue?