Simulating click doesn't work

Simulating click doesn't work

I'm trying to simulate a click, but nothing happens. Here is my code:
  1. $(document).ready(function() {
  2.     $(".linkall")
  3.     .click(function() {
  4.         $(this).find("a:last").click();
  5.     })
  6.     .find("a").click(function(event) {
  7.         event.stopPropagation(); // needed to prevent an endless loop. Also, because this click has presedence over the other click, this prevents all links from resulting in the same page
  8.     });
  9. });
Here is my HTML:
  1. <div class="category linkall block">
  2.   <img src="products/drill-pipes.png" />
  3.   <h3>DRILL PIPE &amp; ACCESSOIRES</h3>
  4.   <p>Our complete product overview</p>
  5.   <p><a href="#">CLICK HERE &#x25ba;</a></p>
  6. </div>

When I click the link, it works fine, but when I click the text, nothing happens. The click() event does get fired though, because when I put an alert in it (after "event.stopPropagation()"), it fires.

I could use a simple "window.location", BUT sometimes the link already has an event bound to it which returns false, meaning the link should not open in a new page, but for example in a dialog. However there's no way to find this out AFAIK.

Does anyone know how to do this?