| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
| 12:40 am on Dec 28, 2002 (gmt 0)|
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?
| 6:32 pm on Dec 28, 2002 (gmt 0)|
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