• Home
  • Remove Link Titles

    A Link with a Title Attribute
    <a href="https://denverit.com" title="This is the Title Attribute">A Link with a Title Attribute</a>

    The Title ToolTip is hidden by this script...

    <script>
    var anchors = document.querySelectorAll('a[title]');
        for (let i = anchors.length - 1; i >= 0; i--) {
        anchors[i].addEventListener('mouseenter', function(e){
            anchors[i].setAttribute('data-title', anchors[i].title);
            anchors[i].removeAttribute('title');
            
        });
        anchors[i].addEventListener('mouseleave', function(e){
            anchors[i].title = anchors[i].getAttribute('data-title');
            anchors[i].removeAttribute('data-title');
        });
    }
    </script>

    By @hugsbrugs at https://stackoverflow.com/questions/15364063/is-it-possible-to-hide-the-title-from-a-link-with-css/73835463


    Page Contents