| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
Heres the link:
<a href="mockup2.htm" id="corporateSubMenuOneActuator" class="corporatesubmenuoneactuator">Overview</a>
if (actuatorType == "linkActuator")
window.location = menu.url;
How do I get the value of the links HREF?
Your going to need to use the links array.
where i is the number of the link in the array.
document.links.href="url"; // = mylink.com from below if those are the only links on the page or the first three.
Try something like this
whatHref = document.links[arraynum].href;
<a href="yourlink.com" onclick="locateHref(0)">test1</a>
<a href="mylink.com" onclick="locateHref(1)">test1</a>
<a href="theirlink.com" onclick="locateHref(2)">test1</a>
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved