Problem clicking on an image and getting the target.href

Problem clicking on an image and getting the target.href

I'm having a problem with this code:
    $('nav a').click(function(e){
            e.preventDefault();
            alert(e.target.href);
    });

Here's the code for the nav

<nav>
<li>
<a href="somepage.html"><img src="someimage.jpg" /></a>
<a href="somepage.html">Some text </a>
</li>
</nav>

When I click on the text, the I get a URL as the target.href, but when I click on the image, I get undefined.