Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!