We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

tgunr on 04/15/07


Tagged

js dashcode firebug


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

vali29


Extract cells


Published in: JavaScript 


Trying to extract these cells from a web page using Firebug, alls well until last row printed then it hangs


  1. var etrows = document.getElementsByTagName("tbody")[3].rows
  2. newdoc = document.open();
  3. for (i=5; i <= etrows.length-3; i++) {
  4. newdoc.write(i + " ");
  5. newdoc.write(etrows[i].cells[0].textContent);
  6. newdoc.write(etrows[i].cells[1].textContent);
  7. newdoc.write(etrows[i].cells[3].textContent);
  8. newdoc.write(etrows[i].cells[5].textContent);
  9. newdoc.write("<br/>");
  10. }

Report this snippet 

You need to login to post a comment.