There will be only one link of a particular class on the page.
I’m trying to write a javascript snippet that will find this:
<a href="http://www.stackoverflow.com" class="linkclass"> ... </a>
and return a string consisting of this:
http://www.stackoverflow.com
Thanks in advance everyone.
Try the following
Note: If there is only ever one element of that class it would be much more efficient to give the element a unique
idinstead of aclass. The code would then be much simpler