cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
New User

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

<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.

Tags (2)
2 REPLIES
New User

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

Site Moderator

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

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.