KeyDown event is not firing second time.
- by stackuser1
In my masterpage, i'm having one textbox for searching purpose. if we press enterkey it is redirecting to some otherpage. But it is happening only one time. next time when i enter some text and press enter key, it is not going to the Keydown event handler.
Code:
javascript Code:
function SearchQuestionsAndDisplay(txt, event) {
if (event.keyCode == 13) {
document.location = "BrowserAddOn.aspx?SearchString=" + escape(txt.value);
}
return false;
}
Text Box:
onkeyup = "return SearchQuestionsAndDisplay(this,event)" CssClass="searchtxtbox" /
Please suggest me what i need to do. pl let me know if there is anything missing in my code.