If I click 3 times html table same row means.. I want to disable/hide that row.. that click count only reset when page reload.. using only pure javascript

My code:

```js
                                                               window.onload=function found(row) {
            var table=document.getElementById("main");
            var rows = table.rows;
            for (var i = 0; i < rows.length; i++) {
                 rows[i].onclick = (function() { // closure
                    var cnt = i; // save the counter to use in the function
                         return function() {
                           var result = this.cells[i];
                           alert("You want to choose "+result.innerHTML);
                         }
                   })(i);
               }
           }
```

```html
<html>
<head>
    <title>Untitled</title>
  <body>

<table id="main"><tr>
    <td>1</td>
    <td>2</td>
    <td>3</td>
    <td>4</td>
</tr><tr>
    <td>5</td>
    <td>6</td>
    <td>7</td>
    <td>8</td>
</tr><tr>
    <td>9</td>
    <td>10</td>
    <td>11</td>
    <td>12</td>
</tr></table>

</body>
</html>
```