Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

95
Vistas
Firefox is triggering inputevent on textarea on new window opened with CTRL + Back/Forward/Refresh Button

I strip my app till I isolate the problem. I have a simple page with a script file. If I open the file in browser, everything is OK. But, (with file opened in browser) if I press CTRL and click Back/Forward/Refresh, then Firefox will open a new file. The problem is that in console log will appear the message "Hmmm...". Somehow Firefox will trigger inputevent on textarea on new window. Firefox version is 93.0 (64). Chrome is OK.

index.html

<!doctype html> 
<html> 
<head>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script defer src="myscript.js" type="text/javascript"></script>
</head>
<body>
<textarea id="mytext"></textarea>
</body>
</html>

myscript.js

$('#mytext').on('input', function (){
console.log("Hmmm...");
});

Where is the problem? Why Firefox is triggering inputevent on textarea on new window?

PS A simple fix is to drop the defer attribute, but, in the original app I want to load this file at the end. Something is wrong but i do not understand what is wrong.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda