Click here to Skip to main content
14,239,615 members
Rate this:
Please Sign up or sign in to vote.
See more:
(function generate_table() {
  var body = document.getElementsByTagName("body")[0];
  var tbl = document.createElement("table");
  var tblBody = document.createElement("tbody");
  for (var i = 0; i < 2; i++) {
    var row = document.createElement("tr");
    for (var j = 0; j < 2; j++) {
      var cell = document.createElement("td");
      var cellText = document.createTextNode("cell in row "+i+", column "+j);
  tbl.setAttribute("border", "2");

What I have tried:

in this code after page loaded can I put a button in the html page do shows and hides arrow?
ZurdoDev 12-Jul-19 12:45pm
What is your question?
Diyarona 5 days ago
How do I delete a row by click a button on the page and create it again?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100