Firefox: Focusing popup windows

If you find the code snippet:

<body onload="self.focus()">

not work in Firefox 2, this is not a bug. Firefox has an advanced Javascript option called “Raise or lower windows” which is deactivated by default. You may find this option under:

  • Tools
  • Options…
  • Content tab
  • Advanced button next to “Enable JavaScript”

Firefox advanced javascripts options

Once enabled the above code will work again. But only on your Firefox. So you might want to rethink if that popup stuff is really what your users want 😉

This entry was posted in Software and tagged . Bookmark the permalink.

1 Response to Firefox: Focusing popup windows

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s