Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why your browser doesn't work press enter key in textboxs.

  • 2 replies
  • 4 have this problem
  • 23 views
  • Last reply by cor-el

$('#txtIlcArama').keydown(function () {

  if (event.keyCode == 13) { 
     GetUrunler(0, 0); 
  } 

});

event.keyCode working all browser but it isn't working at your browser.

$('#txtIlcArama').keydown(function () { if (event.keyCode == 13) { GetUrunler(0, 0); } }); event.keyCode working all browser but it isn't working at your browser.

Chosen solution

Does it help if you include the event parameter?

$('#txtIlcArama').keydown(function (event) { 
   if (event.keyCode == 13) { 
      GetUrunler(0, 0); 
   } 
});
Read this answer in context 👍 1

All Replies (2)

I am sorry to hear that the code is not working. Please first consider checking out stackoverflow.com for this question since it required developer knowledge.

Chosen Solution

Does it help if you include the event parameter?

$('#txtIlcArama').keydown(function (event) { 
   if (event.keyCode == 13) { 
      GetUrunler(0, 0); 
   } 
});