window.focus() not working with fine in IE6

Posted on 2009-07-13
Last Modified: 2012-06-27
i am trying to set focus using window.focus().but this doesnt work in Firefox.
i also tried self.focus()
and  if (self.focus)
but its of no use.everything works fine with IE6 but not FF.
Please help.
Question by:mj26
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 46

Expert Comment

ID: 24838484
Hi mj26,

Have a look at the following:

Good Luck!


Author Comment

ID: 24838619
Hi tbsqadi,
I have already checked the link.But unfortunately, its of no use for me.
Can you please suggest some other alternative.


Expert Comment

ID: 24848595
Are you getting any errors on your error console in Firefox?

Accepted Solution

mj26 earned 0 total points
ID: 24848654
I have got the solution for my problem.
It sounds silly but it took long time for me to figure it out.

We need to do the brower settings.
In FF, just go to Tools--> Options -->Content Tab --> Advanced option infront of Enable Javascript checkbox
Check "Raise or lower windows" and thats it you are done.

Featured Post

Is your NGFW recommended by NSS Labs?

Ours is! NSS Labs Next Generation Firewall Test gives the WatchGuard Firebox M4600 a "Recommended" rating! Curious where your NGFW landed on the  Security Value Map? See the map and download the full report today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
I have been working with Orchestrator 2012 for a few months now and I must say it has surprised me at every turn, with its functionality and integration capabilities it has really shown me how the System Center Suite of products really all fit toget…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question