JS traversal all cells of Table's content idea is to traverse all Rows of Table, traverse every column in the Row, and get the content of cells in the Table.
function GetInfoFromTable(tableid) { var tableInfo = ""; var tableObj = document.getElementById(tableid); for (var i = 0; i < tableObj.rows.length; i++) { //Tranquility of all Rows of Table for (var j = 0; j < tableObj.rows[i].cells.length; j++) { //Tranquility of each column in Row tableInfo += tableObj.rows[i].cells[j].innerText; //Get the content of the cell in TableInfo += " "; } tableInfo += "/n"; } return tableInfo;}