Getting current window on a popup (google chrome extension)
Posted
by Steinn
on Stack Overflow
See other posts from Stack Overflow
or by Steinn
Published on 2010-06-13T01:29:49Z
Indexed on
2010/06/13
1:32 UTC
Read the original article
Hit count: 221
google-chrome-extension
Hi, i'm building a google chrome extension, and i'm trying to get the selected window in a popup. (i'm talking about the popup that shows when you click in the extesion icon).
I try to use the documentation, but i didn't get it well. I tryied to use: chrome.windows.getCurrent(function(w) { chrome.windows.get(w.id, function (response){ alert(response.location.href); }); });
But didn't work. Any ideas?
Thanks (sorry if the english is bad).
© Stack Overflow or respective owner