HoloGuides<br>Know Everything Knowledge
Programming
JavaScript . Tables



  Table Elements
  TABLE ID=myTable
  myTable.border=2;
   
  TR, rows
  myTable.rows.length();
  myTR=myTable.insertRow();
  TD
  myTD=myTR.insertCell();
   
  -
   
   
Table name : myTable
xxx  
   

be sure to set the ID of the cell you want to work on

function CyJS_Utils_insertRow()
{
myTR=myTable.insertRow();
alert("myTable has now "+myTable.rows.length+" rows");
// you have to add also cells into the newly created row!
myTD=myTR.insertCell();
myTD.innerText="Hello";
myTD=myTR.insertCell();
myTD.innerText="new cell";
}


Table name : mySumTable

number unit total

 

 


 

 

www.goto.com Search the Web.
Type it and go!
  

 



Banner Barter