Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

window.focus() not working with firefox.works fine in IE6

Posted on 2009-07-13
4
Medium Priority
?
681 Views
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)
        {
            self.focus();
        };
but its of no use.everything works fine with IE6 but not FF.
Please help.
0
Comment
Question by:mj26
  • 2
4 Comments
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24838484
Hi mj26,

Have a look at the following:
http://www.tek-tips.com/viewthread.cfm?qid=1165047&page=1

Good Luck!

Gary
0
 

Author Comment

by:mj26
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.

thanks
0
 
LVL 4

Expert Comment

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

Accepted Solution

by:
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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some of you may have heard that SonicWALL has finally released an app for iOS devices giving us long awaited connectivity for our iPhone's, iPod's, and iPad's. This guide is just a quick rundown on how to get up and running quickly using the app. …
OpenVPN is a great open source VPN server that is capable of providing quick and easy VPN access to your network on the cheap.  By default the software is configured to allow open access to your network.  But what if you want to restrict users to on…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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…

824 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