Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

323
Visualizações
Bug in chrome hover when window.open() called.

I believe there's a bug in chrome for hovering when a new window is opened.

The following code demonstrates this:

<!DOCTYPE HTML>
<html>
<head>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js" type="text/javascript"></script>
<style>

#outter {
   height:30px;
   width:30px;
   background-color:grey;
   position:relative;
}

#outter:hover {
   cursor:pointer;
   background-color:red;
}

#menuBox {
   position:absolute;
   top:100%;
   width:100px;
   height:100px;
   border:1px solid black;
   display:none;
}

.menuItem {
   height:20px;
}

.menuItem:hover {
   background-color:grey;
}

</style>


<script>

$(document).ready(function() {
   $("#outter").on("click",function() {
      $("#menuBox").toggle();
});

$(".menuItem").on("click",function() {
   window.open(
       "http://www.google.com",
       "",
      "menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=100,height=100,top=100,left=100");
   });

});
</script>


</head>
<body>

<div id="outter">

   <div id="menuBox">
      <div class="menuItem">1</div>
      <div class="menuItem">2</div>
   </div>
</div>

</body>
</html>

To reproduce:

  1. Select square to open container
  2. select menu item
  3. close open window.
  4. select square again

** BUG encountered- as you can see the menu item is highlighted as if it were hovered **

Can someone please tell me if they are getting this with other versions of chrome too?

I'm running Version 57.0.2987.133 (64-bit) on Mac OsX

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda