On Monday September 25th from 10PM EDT - 12AM EDT (2AM UTC - 4AM UTC on September 26th), we will be performing system maintenance on the Firefox Accounts databases for two hours. During the maintenance window, there will be brief periods of a few minutes where users will not be able to login to their accounts. Please try again at a later time.

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

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Firefox loses focus from input after window loses focus

  • Akukho zimpendulo
  • 8 zinale nkinga
  • 18 views
more options

Got small technical question. Consider the following simple example html: <input type="text" onchange="alert('changed')" ondblclick="window.open('http://www.google.com')" name="foo">

I've encountered small yet annoying behavior glitch in Firefox. As we know, when I enter something into text input then when I'm moving off from that input (click somewhere or hit tab etc) the onchange event fires (which is expected and wanted behavior). Now what annoys me is that when I'm on that input and lose focus of that window (change task or double click on my example case, which opens new window) then Firefox loses focus from that input where other major browsers (IE, Chrome) will just lose the focus of current window and when I get back then the input is still in focus. In other words Firefox fires onchange event when window loses focus where other browsers don't (as focus is not lost). As I'm running specific web application this behavior messes up my apps logic. I think this glitch has been there since day one (and IE and chrome act differently also from day one). Perhaps this can be fixed? Not expecting or hoping for anything but in version 8 perhaps :)

Got small technical question. Consider the following simple example html: <input type="text" onchange="alert('changed')" ondblclick="window.open('http://www.google.com')" name="foo"> I've encountered small yet annoying behavior glitch in Firefox. As we know, when I enter something into text input then when I'm moving off from that input (click somewhere or hit tab etc) the onchange event fires (which is expected and wanted behavior). Now what annoys me is that when I'm on that input and lose focus of that window (change task or double click on my example case, which opens new window) then Firefox loses focus from that input where other major browsers (IE, Chrome) will just lose the focus of current window and when I get back then the input is still in focus. In other words Firefox fires onchange event when window loses focus where other browsers don't (as focus is not lost). As I'm running specific web application this behavior messes up my apps logic. I think this glitch has been there since day one (and IE and chrome act differently also from day one). Perhaps this can be fixed? Not expecting or hoping for anything but in version 8 perhaps :)