When a link is clicked, I need to transfer the first and last name from the href and then navigate to the next page. How do I do this?

**HTML**

```
<a href="candidate.cfm">
     #result.firstname# #result.lastname#
</a>

```

**JQuery:**

```
  $('a [name="submit1"]').click(function(event) {
      alert(#result.firstname#)
   });

```