Add + 1 to a variable and access different pages depending on the value

0
Hello, I'm trying to create a code that starts with a value of 0, and every time it enters google, for example, the value is increased by 1, and each time the value increases, the code accesses a different page. I've got a code to take as a basis, but I'm not understanding where the variable name is and how to make the script do the redirect.

 var count = 0;//recebendo o valor 5 que você disse
 $('#addCount').click(function(){
 alert(count);
 count++;
 });

edit:

Ok, in fact I want to use this code to access several emails, from different providers, that I own. I get regular updates during the day from certain websites, and my goal is to leave a computer in my room that alone, accesses my boxes of entries in these providers, updating them at all times. If I receive the email I need, my autoIT script will notify me via a beep.

Having said that, in the case of the javascript, I just hope it will go to gmail.com, then go to yahoo.com, then go to uol.com, and then bol.com. I want the script to run in this order, like a loop.

I believe this would only be possible if I used a counter.

Could anyone help? Thank you!

    
asked by anonymous 30.03.2017 / 16:47

0 answers