Is there a way to suppress the pop-up titles on links, yet still keep them on the page for the visually impaired?
That's a function of the browser to interpret the link title and display a tooltip/popup. There's no way to suppress them. I tried (because a client didn't like them either) and there's no way around them.
Links in my browser don't show tool-tips like that unless they have a title
attribute.
If you want, you could use Greasemonkey to run this bit of javascript on evey page to remove them.
var anchorTags;
anchorTags = document.getElementsByTagName("a");
for(var i = 0; i < anchorTags.length; i++) {
anchorTags[i].removeAttribute("title");
}
...it possibly wouldn't be ideal, but you could always try, in place of a title
attribute in the <a href>
, a <span>
within the <a>
tags:
/* screen.css */
a {
}
a span.titleText
{display: none;
position: absolute;
bottom: 1.2em;
left: 0;
}
a:hover span.titleText,
a:active span.titleText,
a:focus span.titleText
{display: block;
}
/* audio.css */
a span
{display: inline; /* or whatever the relevant attribute would be in an audio stylesheet. */
}
<!-- html -->
<head>
<link href="screen.css" type="text/css" rel="stylesheet" media="screen" />
<link href="audio.css" type="text/css" rel="stylesheet" media="screen-reader, audio" />
</head>
<a href="http://some.url.com"><span class="titleText">This is the title</span>This is the link</a>
I don't, however, suggest it as a particularly practical solution. And I'm fairly certain it wouldn't validate. If I knew JS I'd suggest something more workable, but even then I'm not convinced it would work.
I know this has been resolved but I also found this workaround: http://stackoverflow.com/questions/1299772/jquery-hide-native-tooltip-resolved