Hi Folks,
Ok, I am being stupid and can't work this out and it's probably so
simple. What I want to do is keep my site XHTML valid, so I don't
want target= params in any of my links, I want to use jQuery to take
the href param from any clicked link with rel=nofollow which only my
external links
Quick shot (not tested):$(document).ready( function(){$([EMAIL PROTECTED]).click( function() { window.open(this.href) }); });Use this to refer to clicked a element.
2006/11/15, digital spaghetti [EMAIL PROTECTED]:
Hi Folks,Ok, I am being stupid and can't work this out and it's probably
On 15/11/06, digital spaghetti [EMAIL PROTECTED] wrote:
Hi Folks,
Ok, I am being stupid and can't work this out and it's probably so
simple. What I want to do is keep my site XHTML valid, so I don't
want target= params in any of my links, I want to use jQuery to take
the href param from any
Thanks guys, I forgot to mention I had also tried this.href, but it
didn't work either, but I had it in so thats probably why. I knew
I got the basic idea, it was just me being stupid :)
Thanks again.
Tane
On 11/15/06, Dragan Krstic [EMAIL PROTECTED] wrote:
$(document).ready(
Once, when this.href didn't worked for me, I got url by innerHTML, but all links was a href="">2006/11/15, digital spaghetti
[EMAIL PROTECTED]:Thanks guys, I forgot to mention I had also tried
this.href, but itdidn't work either, but I had it in so thats probably why.I knewI got the basic idea,