Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting values out of links

Status
Not open for further replies.

mrd98

Programmer
Aug 10, 2000
1
GB
Can anybody help me??<br><br>I have a link on my page like:<br><br>&lt;a href=&quot;abc.asp?value1=23&value2=44&quot; onclick=&quot;return getValues()&gt;hi&lt;/a&gt;<br><br>what I want to be able to do is in the function getValues() extract the values of value1 and value2 from the link, is this possible.&nbsp;&nbsp;<br><br>Many thanks<br>MArk D
 
yes... you want to get them from the page that the link is on, or the page that it is linking to?<br><br>Either way, just parse through the string, the a.href property on the sending page or the window.location.search on the receiving page...<br><br><br><A HREF="mailto:jared@aauser.com">jared@aauser.com</A>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top