This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

تلاش سپورٹ

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.

مزید سیکھیں

How do I entirely disable javascript's "this.focus()" function without disabling all javascript?

  • 1 جواب دیں
  • 2 میں یہ مسئلہ ہے
  • 2 دیکھیں
  • آخری جواب بذریعہ philipp

more options

Have a problem with certain webpages stealing focus. I have tried googling this issue, but as most people know, it's pretty much impossible to search for anything involving punctuation on Google.

I have registry settings in place to stop regular focus-stealing, however this does nothing when it's firefox stealing its own window priority.

I'd love to know how to entirely disable the javascript function this.focus(), be it using a greasemonkey script or otherwise.


Can anyone shed light on this issue?

Have a problem with certain webpages stealing focus. I have tried googling this issue, but as most people know, it's pretty much impossible to search for anything involving punctuation on Google. I have registry settings in place to stop regular focus-stealing, however this does nothing when it's firefox stealing its own window priority. I'd love to know how to entirely disable the javascript function this.focus(), be it using a greasemonkey script or otherwise. Can anyone shed light on this issue?

تمام جوابات (1)

more options

hello, please check in firefox > options > content > javascipt - advanced that the "raise or lower windows" setting is disabled.