Now why would target="_blank" be deprecated without a suitable HTML substitute, requiring coders to have to resort to js for the functionality?
Odd... Rick -----Original Message----- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Liam Potter Sent: Tuesday, September 22, 2009 10:20 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [Attrib "external" not working...] Except that target="_blank" is deprecated in xhtml 1.1, so to make sure you're markup validates, you need to use javascript to make links open in a new window/tab. One way to do it is like this. $("a[rel='external']").click(function(){ this.target = "_blank"; }); Liam Byrne wrote: > > Maybe because 'rel="external"' doesn't have any meaning or > functionality ? > > The proper syntax with functionality would be <a target="_blank" > href="http://www.google.com">google</a> but that's just HTML; it has > nothing to do with jQuery > > Liam > > Lord Gustavo Miguel Angel wrote: >> Hi, >> >> Why this code not working? >> >> <a rel="external" href="www.google.com">google</a> >> >> url www.google.com <http://www.google.com> open in same windows. >> >> >> Thank“s >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: >> 270.13.112/2388 - Release Date: 09/22/09 05:51:00 >> >> >