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

175
Vistas
Activate (show) 'title' HTML attribute using JavaScript

I have a website where the translations for static text are shown "on-hover" (while the user is hovering over the HTML element (e.g. h1, label, span)). This behaviour is implemented using the 'title' HTML attribute.

Some of the users are using iPads to browse the website, so I need to know if it possible to combine iPad's touch gestures to activate (show) the 'title' attribute. To be more specific, I want to know if it possible to show title using JavaScript (as it was hovered with a mouse).

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The hover event in touch devices do not work in the way as it works in the PCs and laptops.

In touch devices,
the hover event is triggered when the user clicks on the element and it closes when the user clicks some where else.

So the title text is shown when the user clicks on it and it disappears after the user clicks some where else on the screen.

If you want the the title element to be displayed when the user places his/her fingers on the element (touching it) you have to handle html touch events and also create your own tooltip.

there is some explanation here

about 4 years ago · Juan Pablo Isaza Denunciar
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