# A way (using js?) to make a single link work with TWO href?

**URL:** <https://forum.kirupa.com/t/a-way-using-js-to-make-a-single-link-work-with-two-href/325409>\
**Category:** web dev\
**Created:** [October 13, 2011, 8:05pm UTC](https://forum.kirupa.com/t/a-way-using-js-to-make-a-single-link-work-with-two-href/325409 "2011-10-13T20:05:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eabigelow](https://avatars.discourse-cdn.com/v4/letter/e/eada6e/32.png) [@eabigelow](https://forum.kirupa.com/u/eabigelow)\
**Post date:** [October 13, 2011, 8:05pm UTC](https://forum.kirupa.com/t/a-way-using-js-to-make-a-single-link-work-with-two-href/325409/1 "2011-10-13T20:05:03Z")

</div>

Hi–

I have a link that has an mp3 sound as its href:

```auto
<a href="sounds/genealogy.mp3" class="track track-default">this is a link</a>

```

Unfortunately, I also need that same link to go to a part on the site (href=#greenhouse) so that the sound plays on that part of the site.

Does anyone know how to accomplish this? I am imagining it would be with javascript, but honestly, I do not know.

Any help would be greatly appreciated. Many thanks…!
