D
D
Dimazsever2014-10-18 18:51:27
Browser extensions
Dimazsever, 2014-10-18 18:51:27

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"});

When the created window is closed, display the following message:
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 question

Ask a Question

731 491 924 answers to any question