Matt,
The point of writing code that conforms with specifications isn't to satisfy
the validator.
The point of satisfying the validator is so that you know that your code
will work as expected in all conforming browsers.
--rob
On 7/24/07, Matt Stith [EMAIL PROTECTED] wrote:
Im not really
On Jul 23, 2007, at 6:45 PM, cfdvlpr wrote:
Is there an easy way to do this that does not require you to hand code
each external link? Can you write a Jquery function that does this
for any link that has the string http in it?
Sure, if you want to do it for any link that has an href
Or even easier,
$([EMAIL PROTECTED]'http']).attr('target','_blank');
On 7/23/07, Karl Swedberg [EMAIL PROTECTED] wrote:
On Jul 23, 2007, at 6:45 PM, cfdvlpr wrote:
Is there an easy way to do this that does not require you to hand code
each external link? Can you write a Jquery function
On Jul 23, 2007, at 7:53 PM, Matt Stith wrote:
Or even easier,
$([EMAIL PROTECTED]'http']).attr('target','_blank');
yeah, but I avoid the target attribute out of habit because as far as
I can tell it's not valid with strict doctypes:
http://www.w3.org/MarkUp/2004/xhtml-faq#target
Im not really worried about that.. The validator wont notice that your
setting the target with javascript, so its fine for me :P
On 7/23/07, Karl Swedberg [EMAIL PROTECTED] wrote:
On Jul 23, 2007, at 7:53 PM, Matt Stith wrote:
Or even easier,
$([EMAIL
gday there, you could also try this...
$(document).ready(function(){
$(body).find(a).each(function(){ // specify which links you are
hunting down, body obviously gets all
var siteUrl = 'yourdomain.com'; // your site base domain
if($(this).attr(href).match(siteUrl)===null) { // if your
6 matches
Mail list logo