Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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

  • 2 ответа
  • 2 имеют эту проблему
  • 1 просмотр
  • Последний ответ от 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.

Изменено cor-el

Все ответы (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.