I created my tooltips using this website:
http://www.w3schools.com/howto/howto_css_tooltip.asp
Now I'm wondering how would I close the tooltip after an arbitrary amount of time using a vanilla javascript solution.
My solution so far:
window.setTimeout(closeTooltips(), 700);
function closeTooltips(){
document.getElementsByClassName('tooltipText').style.display="none";
}
I understand why this is not working but I'm unable to see a solution. I could iterate through the NodeList that getElementsByClassName returns and hide each individual one but I feel that is probably not an ideal solution.