I have one page with a variable 'g'. On click I need to move the current definition of 'g' to external HTML page with a table. Those 2 pages are connected between each other with JS file. I need to do it only using js / jquery.
Here is my weird code that occurred when I tried to do it by myself.
function totable() {// function to add variable g to table count
    tableContent = "<tr>"; 
    for( ;g> 1;) {
        tableContent += "<td>" + g + "</td>"; 
    }
};
There must be some problem with connection between those 2 HTML files I suppose What is the best way to do it? Any suggestions? Thanks in advance
 
     
     
     
    