I’m trying to open all links on a page when the href contains certain text, at the moment I’m using
$('a[href*="/steve"]').each(function() {
window.open($(this).attr('href') );
});
now the page I’m using contains a lot of links with that text in the href so it spams me with open windows in a very short amount of time and I would like to add a delay so it has time to open and wait about 5 seconds before opening the next. I was trying to use .delay but can’t get it working as I’m pretty new and didn’t know exactly where to put it.
You can do this :
The idea is to call
setTimeoutwith an ever increasing delay.