Posted By

tgunr on 04/15/07


Tagged

js dashcode firebug


Versions (?)

Who likes this?

1 person have 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.