WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: external links & new windows

for

From: Jared Smith
Date: Nov 9, 2010 6:15PM


On Tue, Nov 9, 2010 at 4:42 PM, Chris Hoffman wrote:

> One is for links that go to other sites, and the other is for links to non-HTML resources (PDFs, video files, etc.)

Perhaps hidden in this argument is the suggestion that users don't
overly care if it's a link to another site.

The file type, however, is pretty important information and should
probably be presented to everyone, not just screen reader users.
Having this information in the link would also be very useful for SEO.

> With Jared's comments about SEO dilution in mind, is there a good solution for these cases?

A good, though not perfect, solution is to write the content to the
link using JavaScript after page load. The WebAIM site currently uses
hidden text and a visible background icon for external links. We will
probably dynamically add this text and icon using JavaScript in a
future site release. You don't even have to give the link a class name
- just detect whether it links to someplace other than your own domain
and then add the class name and text if appropriate.

Jared