I'm having trouble opening new windows programmatically in Google Chrome (version 62.0.3202.94).
Go give this a try:
function test(){
console.log("haha");
}
setInterval(test, 1000);
... and you'll see a new line of haha
every second.
When you try this:
function test(){
window.open("https://stackoverflow.com/");
}
setInterval(test, 1000);
... you won't see a new page of Stack Overflow opening every second.
However, typing window.open("https://stackoverflow.com/")
into the developer console and hitting enter does open a new page of Stack Overflow.
This is quite annoying because I'm going to automate something. Is there a workaround?