Answer the question
In order to leave comments, you need to log in
How to implement it?
I need to wait for a new window to open and launch another one, how can I do this, can I track the status of the new window? did like this:
for (let i = 0; i < phrases.length; i++) {
dialogs[i].classList.add('checked');
if(newW){
newW.onload = function(){var newW = window.open(location.href + '?sel=' + dialogs[i].dataset.listId);}
}else{
var newW = window.open(href + '?sel=' + dialogs[i].dataset.listId);
}
break;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question