Hi All,
I am searching for popup window event in chrome.
usingi get window event, i want to differentiate normal & popup window..Code:chrome.windows.onCreated.addListener..
Thanks & Regards,
Sheetal.
This is a discussion on Differentiate popup event.. within the Plugins Development section, part of the Chrome Plugins category: Hi All, I am searching for popup window event in chrome. using Code: chrome.windows.onCreated.addListener.. i get window event, i want ...
Hi All,
I am searching for popup window event in chrome.
usingi get window event, i want to differentiate normal & popup window..Code:chrome.windows.onCreated.addListener..
Thanks & Regards,
Sheetal.
If you mean a popup window like that made by window.open() method, I would suggest hooking that method. To explain, that means backing up the original function, and replacing it with your own that will call the original, along with your own code.
There's a rather nice explanation of how this works here.Code:var oldWindowOpen = window.open; window.open = function(x,y,z){ //Your code that needs to execute BEFORE the original var ret = oldWindowOpen(x,y,z); //Your code that needs to execute AFTER the original return ret; }
~ Projects ~
Specialized: Carapass Auction Watcher, Kongregate Chat
Libraries: bliplib
Tools: manifest syntax highlighting & snippits
~ Happy to make extensions for pay too ;D ~
Portfolio: Search and Share