Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function myFunction() {
  2. var table = document.getElementById("myTable");
  3. var row = table.insertRow(3);
  4. var cell1 = row.insertCell(0);
  5. var cell2 = row.insertCell(1);
  6. cell1.innerHTML = "NEW CELL1";
  7. cell2.innerHTML = "NEW CELL2";
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement