I am trying to make a tooltip in plain JavaScript which is shown on hover. Like the one in Stack Overflow on hover over the profile name a div is s
hover
div
document.addEventListener("mousemove",function awesome(e){ if(e.target.id != ""){ e.target.title = "#"+e.target.id; } });
random stuff some more random stuff
and you can do it with lots of other stuff, like className, tagName,etc...