Prevent JavaScript to be refreshed every time the page is loaded
<p>I have the following code:</p>

<pre><code>&lt;script type="text/javascript"&gt;

var Value = new Date();
var min = Value.getHours();

setTimeout ("Timeout()", 1);

function Timeout ()
{
    for (var i = 0; i &lt;= 15; i++) {
    var x = document.getElementsByClassName("d")[i];
    x.innerHTML = (min + ":" + "0" );
    };
    min--;
    setTimeout ("Timeout()", 1000);
}

&lt;/script&gt;
&lt;p class="d"&gt;&lt;/p&gt;
</code></pre>

<p>Now my problem is that every time I refresh the page the variable gets reset. Is there a way to set the variable once for a certain amount of time, so it doesn't get reset?
Thanks</p>
