Discussions in Accessible Web Developers
Open new window : warn the user (View All Discussions in this Group)
Hi,
I know how to do that with a text link :
- either I put "[new window]" at the end of the label of my link
- either I add a title on the link : it will contain the exact label of my link + "[new window]"
What happens if my text link becomes an image (img tag) ?
You're better off with an image because the alt text will more likely be read than that of the title attribute's text. Better yet, though, allow users to decide by either teaching them how to open links in a new window if they want, or add a script that let's them choose it as a preference.
Users can opt-in if you leave it up to them, but if you decide for them they can't opt-out.
To post to this discussion and cheer or jeer comments, you must be part of the group.
