 Is there a way in javascript to count your links on your link page and
post the total on the page?
I wonder if you can use <td id="*"> Where *=any text you choose.
Can the id command be used in td and then have it count that text.
Line 1<script language="Javascript">
Line 2 function count(table) {
Line 3 var x = table.getElementsByTagName('td');
Line 4 var countit=0;
Line 5 for(var i = 0; i < x.length; i++) {
Line 6 if(x[i].innerHTML == 'Open') {
Line 7 countit++;
Line 8 }
Line 9 }
Line 10 return countit;
Line 11 }
Line 12 </script>
In Line 5, do I need to have x.length;....the word length?
Definitely need help with this one....
The KRYPTOR 
__________________
"What is SEEN is TEMPORAL, What is UNSEEN is ETERNAL".
Please login or register to view this content. Registration is FREE
|