# Is there a way?

**URL:** <https://forum.kirupa.com/t/is-there-a-way/286296>\
**Category:** web dev\
**Created:** [April 13, 2009, 2:05pm UTC](https://forum.kirupa.com/t/is-there-a-way/286296 "2009-04-13T14:05:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![some\_typer](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@some\_typer](https://forum.kirupa.com/u/some_typer)\
**Post date:** [April 13, 2009, 2:05pm UTC](https://forum.kirupa.com/t/is-there-a-way/286296/1 "2009-04-13T14:05:28Z")

</div>

Is there a way to dynamically call a function AND redirect to a new URL with an anchor tag?

More specifically, I have a page that has content populated with multiple divs, of which all but 1 are hidden at any given time. Currently, there is on-page navigation that calls javascript to hide and display the appropriate div. Is there a way I can put a link on my dropdown menus that will load the page then call the function with a value based upon the link that was used?
