I want to increment a url automatically using javascript and use it in Greasemonky on "Firefox"
ex:
www.google.com/id=1
www.google.com/id=01
www.google.com/id=001
www.google.com/id=0001
how can I achieve that using javascript???
here is what I wrote
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);
but i doesn't increment the zeros as i expected,
can anybody help me?
I don't know what is the problem, maybe it is the Greasemonkey?? I don't know
---------------------------------------------------------------
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?????