Search Support

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.

Learn More

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

  • 2 replies
  • 2 have this problem
  • 2 views
  • Last reply by cor-el

more options
<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

All Replies (2)

more options
more options

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.