Programmatically display HTML element headers

Is there a javascript way to show or hide the title of an element (defined as an html attribute), as if the mouse were hovering over the specified dom element, without actually drawing the mouse?

Thanks in advance.

+4
source share
3 answers

Not with built-in tooltips / headers. But there are jQuery plugins like this that allow you to cut and control them.

+1
source

I would use an absolutely positioned DIV that looks like a built-in tooltip and contains the same text as the alternative. It should be pretty trivial to iterate over all the elements and create a DIV for each of them that has a title attribute.

Very little hassle and no JavaScript plugins required.

+1
source

You can make a tooltip layout (div with border) yourself and show it whenever you want with jQuery. You can select a link element with a headline like this:

a[title] {} 
0
source

Source: https://habr.com/ru/post/1336536/


All Articles