Vignesh Subramanian
Vignesh Subramanian

Reputation: 7289

how to visit a url using console command in chrome

I want to keep hitting an url for 100 times

So i wrote the below command in the console

for(i=1;i<100;i++)
{
this.document.location="http://URLLINK"
}

but this is not working since the document.location is changed How can i achieve this?

Upvotes: 0

Views: 313

Answers (1)

zana
zana

Reputation: 304

Make sure you allow popups in the browser.

for(i=1;i<100;i++){
    window.open('http://URLLINK', '_blank');
}

Upvotes: 1

Related Questions