I have a few Javascript Toggle menus that work beautifully, but I would like the main link that you click on to toggle the menu open, I would like that to also redirect to a new page. Is this possible? I have the <href> tag in the link and it still only toggles the menu and doesn’t redirect the page. Here is the code for the menus:
<script type=”text/javascript” language=”Javascript”>
<!– Hide script from older browsers
function toggleMenu(currMenu) {
if (document.getElementById) {
thisMenu = document.getElementById(currMenu).style
if (thisMenu.display == “block”) {
thisMenu.display = “none”
}
else {
thisMenu.display = “block”
}
return false
}
else {
return true
}
}
// End hiding script –>
</script>
<img src=”<?= $webroot ?>images/arrow.gif”> <a href=”
<span class=”menu” id=”menu1″>
<img src=”<?= $webroot ?>/images/bullet.gif” alt=”bullet”> <a href=”<?= $webroot ?>index.php?view=atp.main”>ATP</a><br>
<img src=”<?= $webroot ?>/images/bullet.gif” alt=”bullet”> <a href=”<?= $webroot ?>index.php?view=atp.faculty”>Faculty</a><br>
<img src=”<?= $webroot ?>/images/bullet.gif” alt=”bullet”> <a href=”<?= $webroot ?>index.php?view=atp.reachus”>How To Reach Us</a><br>
</span>