I'm currently learning to code in javascript and jquery so my knowledge is exceptionally poor. Im trying to edit a script(with lots of googling) that was written in tampermonkey by a friend and I assume I havent been able to find the answer through search as I have been using the incorrect terms - but dont know what they are.

this is the HTML

```
<span class="village_anchor contexted" data-player="9281645" data-id="804"> 
<a href="/game.php?village=143&amp;screen=info_village&amp;id=804">Black Reaper (492|489) K44</a>  
<a class="ctx" href="#"></a></span>

```

All I want to do is get the address that links to and then use location. to go there.

Once again, apologies for my lack of prowess and thankyou for any help.