Follow this[Modify according to your needs]:
var temp=document.getElementById("yourtable")
for ( var i = 0; i<temp.rows.length;i++){
var row = temp.rows.item(i);
for ( var j = 0; j<row.cells.length;j++){
var col = row.cells.item(j);
alert(col.firstChild.innerText);
}
}
Regards.. :laugh: