Answer the question
In order to leave comments, you need to log in
How to find out the ID of the created window?
Need to execute some code after the close event of the newly created window. How to find out the ID of a window created in this way:
chrome.windows.create({url: "index.html", type: "popup"});
chrome.windows.onRemoved.addListener(function(){
alert("Close!");
});
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