I have used this CSS :

a[rel="external"] {
 padding-right: 13px;
 background: url(outofit.gif) no-repeat right top;
}

With this code:

<a href="../sjp.html" rel="external" onclick="window.open(this.href); return false;">THIS</a> is a link to a new window

or, for html5:

<a href="../sjp.html" rel="external" target-"_blank">THIS</a> is a link to a new window

I have also used a variant for pdf, and one for mail links too. No-one has complained (Though Felix might, now . . .)

Bob



----- Original Message ----- From: "David Hucklesby" <[email protected]>
To: <[email protected]>
Sent: Wednesday, December 21, 2011 5:14 PM
Subject: Re: [WSG] Expected behaviour of links to external websites



Excellent points. If your reason for wanting to open a new window or tab
is to be helpful, I suggest telling your visitors about the right-click
option right there on your web page. If a link does open a new window,
say so. A case could be made for opening PDFs in a new window. But this
always breaks the back button, and I doubt there are many who don't know
about that browser feature. :)
--
Cordially,
David


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to