how to increment a url with zeros every specific interval "Javascript"?
<p>I want to increment a url automatically using javascript and use it in Greasemonky on "Firefox"</p>

<p>ex:</p>

<pre><code>www.google.com/id=1
www.google.com/id=01
www.google.com/id=001
www.google.com/id=0001
</code></pre>

<p>how can I achieve that using javascript???</p>

<p>here is what I wrote</p>

<p><hr /></p>

<pre><code>var numberr = “2”;
var totall = “”;
var timeout = 12000;

setTimeout(function() {
    var numm = “0” + numberr;
    totall = “http://www.google.com/id=0” + numm;
    window.location.href = totall;
}, timeout);
</code></pre>

<p><hr /></p>

<p>but i doesn't increment the zeros as i expected,</p>

<p>can anybody help me?</p>

<p>I don't know what is the problem, maybe it is the Greasemonkey?? I don't know</p>

<h2>---------------------------------------------------------------</h2>

<p>OK, It seems to be a javascript unfixable problem, So I'll implement the logic in a Windows application using C#, BUT I neet to know how to access [[firefox]] url , and reload action through C# in a windows application, can anybody help?????</p>
