Skip to content

Getting value of href from anchor tag dynamically

Ashu Rawat

Ashu Rawat

Asked Sep 30, 2013, 9:30 PM EDT1 answer
Share
LinkedInX
Hi,

Please help me in this issue..


I have a big tag value that is like..


WIN IPHONES, Recharges and other exciting GIFTS. SMS WF and send it to 56060. HURRY


from this tag value i want just that href value that is highlighted of anchor tag...Please get me some way to get this much easier..I want this for my web application..
I tried a lot things..but no succeed..
Please help me..
I will be highly obliged to you..
Thanx in advance...

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi Ashu,

    You can try this



    WIN IPHONES, Recharges and other exciting GIFTS. SMS WF and send it to 56060. HURRY


    Here i just added 1 'onclick' event so that when the link will be clicked,
    the function LocateHref will be called & you can get the value of your link

    for any reference,
    http://www.webmasterworld.com/forum91/249.htm

    0