Hi, I think that is because of the alert function. It needs a string and maybe for an anchor object, jquery introduces a toString method.
With the console of firebug, there are no differences between anchor and images Pierre 2009/6/11 bensan...@gmail.com <bensan...@gmail.com> > > Hi all, > > I'm confused as to why when I have: > > $('a').click(function(){ > alert(this); > return false; > }); > > the alert displays the URL defined in the href attribute, and not an > object. > > Yet, if i call like say an image, it returns the object. > > Thanks > ben >