BatCountry
07-27-2011, 02:11 AM
Hiya!
Trying to figure out how to use javascript to extract all links on a page that have a certain class:
e.g. - extract only links with a class of 'tools', ignore all other links:
<a href="http://www.google.com" class="tools">Search</a>
<a href="http://www.tripod.com" class="grapes">Searched</a>
<a href="http://www.dogpile.com">Searches</a>
Any help would be appreciated, I'm guessing I probably have to use something like getelementbyclass("tools")?
Trying to figure out how to use javascript to extract all links on a page that have a certain class:
e.g. - extract only links with a class of 'tools', ignore all other links:
<a href="http://www.google.com" class="tools">Search</a>
<a href="http://www.tripod.com" class="grapes">Searched</a>
<a href="http://www.dogpile.com">Searches</a>
Any help would be appreciated, I'm guessing I probably have to use something like getelementbyclass("tools")?