Link to home
Start Free TrialLog in
Avatar of sleepybear
sleepybear

asked on

Followup to OnClick event question

Please refer to this question that I asked a few minutes ago...

https://www.experts-exchange.com/questions/21415330/Insert-onClick-on-all-a-tags-dynamically.html

I like the answer, but it got me thinking. How would you do this
such that it returned the info between the <a></a> tags?

In other words, instead of returning...

"http://www.google.com", "http://www.yahoo.com" and "https://www.experts-exchange.com",

... it returns "Google", "Yahoo" and "EE"?

Thanks,
SleepyBear

ASKER CERTIFIED SOLUTION
Avatar of Batalf
Batalf
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sleepybear
sleepybear

ASKER

Thankyaveramuch.