rha11y-link-target demo

Return to the rha11y-tools homepage

Getting the bookmarklet

To get the rha11y-link-target bookmarklet, drag the following link to your bookmarks bar. You may also click the link directly to use it on this page for testing. (Refresh the page to reset it.)

rha11y-link-target

The rha11y-link-target bookmarklet checks all <a> tags with href attributes and makes sure they don't have a target set to open in a new window. When run, links that pass this check are outlined in blue, and links that fail are outlined in orange. (Note: this bookmarklet only checks the page source and won't catch JavaScripts that open new windows.)

Test content

<a> with no href (should be ignored)

Link with no target attribute (should pass)

Link with target="_self" (should pass)

Link with target="_blank" (should fail)

Link with target="randomtext" (should fail)