var tbody = window.document.getElementById("tblBody"); var tr=window.document.createElement("tr"); tr.setAttribute("className", "tdGridRow"); tr.setAttribute ...