X
Tap here to go to the mobile version of the site.

Support Forum

jquery .focus() doesn't work correctly in FF18 for Android

Posted
<html>
<head>
  <title>testing</title>
   <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript">
	 $(window).bind("focus", function(event)
    {
		$("#focus1").append("focus");
		
    }); 
	 $(window).bind("blur", function(event)
    {
		$("#focus1").append("blur");
    }); 
</script>

</head>
<body>
<p id="focus1"></p>
</body>
</html>

I've test with this code. In FF18 for Android, I get only the status focus when I OPEN the test site.

When I change the tab nothing happens with the status. I won't change to blur too.

I tried on PC and it works correctly with Firefox and Internet Explorer.

On Android I tried Chrome and FF18. It works good in Chrome.

So maybe this an bug.

Thanks.

<pre><nowiki><html> <head> <title>testing</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script type="text/javascript"> $(window).bind("focus", function(event) { $("#focus1").append("focus"); }); $(window).bind("blur", function(event) { $("#focus1").append("blur"); }); </script> </head> <body> <p id="focus1"></p> </body> </html></nowiki></pre> I've test with this code. In FF18 for Android, I get only the status focus when I OPEN the test site. When I change the tab nothing happens with the status. I won't change to blur too. I tried on PC and it works correctly with Firefox and Internet Explorer. On Android I tried Chrome and FF18. It works good in Chrome. So maybe this an bug. Thanks.

Modified by cor-el

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0

More Information

Question owner

Here is a link http://jsfiddle.net/Vqded/
cor-el
  • Top 10 Contributor
  • Moderator
12910 solutions 118408 answers

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum. *http://forums.mozillazine.org/viewforum.php?f=25 The helpers at that forum are more knowledgeable about web development issues.<br> You need to register at the MozillaZine forum site in order to post at that forum.