Here is my code that I have a question about.
if (countdown_seconds == 172) {
var table = document.getElementById("update");
var row = table.insertRow(0);
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
var cell4 = row.insertCell(3);
var cell5 = row.insertCell(4);
var dice = localStorage.getItem("dice");
var OE = localStorage.getItem("OE");
var LH = localStorage.getItem("LH");
cell1.innerHTML = clock_info.mm + "," + clock_info.dd;
cell2.innerHTML = pr + "count";
cell3.innerHTML = dice;
cell4.innerHTML = OE;
cell5.innerHTML = LH;
I have used a table.insertRow and it does work. But here is my question, I like to keep this table (and it is going to be random) even if the page refresh. In addition I have used localstorge but it wasn't working because I wanted to keep adding and until I have 100 .
Is there anyway I can save HTML whenever it changes the code on the server side? (automatically)