function addRowInTable(tableRow){
        var table = document.getElementById('my-table');
        var row = table.insertRow(1);

        var cell1 = row.insertCell(0);
        var cell2 = row.insertCell(1);
        var cell3 = row.insertCell(2);
        cell1.innerHTML = tableRow.url;
        cell2.innerHTML = tableRow.time;
        cell3.innerHTML = '<a href="#"><img src="../images/remove.png" height=16 width=16></img></a>';
        cell3.id = tableRow.url;
        document.getElementById(tableRow.url).addEventListener('click', function(){
            deleteRowFromTable(row);
        });
    }
/**
    *   Function that adds an url in the table (in the followed list). When a link is added a new directory is created 
    *   in the 'screenshots' directory.
    */
Function that adds an url in the table (in the followed list). When a link is added a new directory is created
in the 'screenshots' directory.
Function that adds an url in the table ( in the followed list ) . When a link is added a new directory is created in the ' screenshots ' directory .
function addRowInTable(tableRow){
        var table = document.getElementById('my-table');
        var row = table.insertRow(1);
        var cell1 = row.insertCell(0);
        var cell2 = row.insertCell(1);
        var cell3 = row.insertCell(2);
        cell1.innerHTML = tableRow.url;
        cell2.innerHTML = tableRow.time;
        cell3.innerHTML = '<a href="#"><img src="../images/remove.png" height=16 width=16></img></a>';
        cell3.id = tableRow.url;
        document.getElementById(tableRow.url).addEventListener('click', function(){
            deleteRowFromTable(row);
        });
    }
function addRowInTable ( tableRow ) { var table = document . getElementById ( 'my-table' ) ; var row = table . insertRow ( 1 ) ; var cell1 = row . insertCell ( 0 ) ; var cell2 = row . insertCell ( 1 ) ; var cell3 = row . insertCell ( 2 ) ; cell1 . innerHTML = tableRow . url ; cell2 . innerHTML = tableRow . time ; cell3 . innerHTML = '<a href="#"><img src="../images/remove.png" height=16 width=16></img></a>' ; cell3 . id = tableRow . url ; document . getElementById ( tableRow . url ) . addEventListener ( 'click' , function ( ) { deleteRowFromTable ( row ) ; } ) ; }
Function that adds an url in the table (in the followed list).
Function that adds an url in the table ( in the followed list ) .