catch the hyperlinks by class attribute
Posted: Sat Aug 23, 2008 3:27 pm
Hi.
I need to catch the address in the hyperlinks. But, the hyperlinks must have the class="link" property.
sample html source:
result must be like this:
Can you help me?
Best regards.
I need to catch the address in the hyperlinks. But, the hyperlinks must have the class="link" property.
sample html source:
Code: Select all
<a href="www.sample1.com" class="link" onmousedown="return click();">sample text 1</a>
<a href="www.sample2.com" onmousedown="return click();">sample text 2</a>
<a href="www.sample3.com" class="link" onmousedown="return click();">sample text 3</a>
<a href="www.sample4.com" onmousedown="return click();">sample text 4</a>Code: Select all
http://www.sample1.com
http://www.sample3.comBest regards.