<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-12688691.post5649027159381689853..comments</id><updated>2008-01-18T21:05:08.084-08:00</updated><title type='text'>Comments on Jiro Feingold: Tracking on click/mousover</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.3203.com/feeds/5649027159381689853/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12688691/5649027159381689853/comments/default'/><link rel='alternate' type='text/html' href='http://blog.3203.com/2008/01/tracking-on-clickmousover.html'/><author><name>Jiro Feingold</name><uri>http://www.blogger.com/profile/14681855913248753444</uri><email>jiro.feingold@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12688691.post-8910403440512023288</id><published>2008-01-18T21:05:00.000-08:00</published><updated>2008-01-18T21:05:00.000-08:00</updated><title type='text'>If you are ever concerned that the onclick will fa...</title><content type='html'>If you are ever concerned that the onclick will fail and default to the href - you can just put return false in your onclick event and your href will be ignored in all cases, regardless of what action happens. you could also extract the href and delete it,  then apply it to the onclick. Something like&lt;BR/&gt;&lt;BR/&gt;function foo(el)&lt;BR/&gt;{&lt;BR/&gt;var tmp = el.href;&lt;BR/&gt;delete el.href;&lt;BR/&gt;el.onclick = function() { window.location = tmp }&lt;BR/&gt;}&lt;BR/&gt;&lt;BR/&gt;This is what I usually do in this type of situation, if I need to run any logic at all on an link in xhtml that multiple people are updating.. Then I key it off an the element ID and build the logic/id association with a dynamic onclick event. &lt;BR/&gt;&lt;BR/&gt;Its friday night and I cant stop thinking about javascript. Damn it!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12688691/5649027159381689853/comments/default/8910403440512023288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12688691/5649027159381689853/comments/default/8910403440512023288'/><link rel='alternate' type='text/html' href='http://blog.3203.com/2008/01/tracking-on-clickmousover.html?showComment=1200719100000#c8910403440512023288' title=''/><author><name>Josh Pope</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.3203.com/2008/01/tracking-on-clickmousover.html' ref='tag:blogger.com,1999:blog-12688691.post-5649027159381689853' source='http://www.blogger.com/feeds/12688691/posts/default/5649027159381689853' type='text/html'/></entry></feed>