javascript - Is there a way, using a possibly a chrome extension, to bring Chrome into focus in windows when a different app has focus? -



javascript - Is there a way, using a possibly a chrome extension, to bring Chrome into focus in windows when a different app has focus? -

use case:

1) user has chrome open on website (which, way, iframe don't have security sandbox privileges access outer window).

2) user goes different application; ms word example.

3) js event fires on website (rendered in iframe) , should bring chrome focus. internally-facing web app.

i tagged chrome-extensions because seems should possible:

google calendar detailed above. chrome.windows.update(windowid, {focused: true}) need... there chrome extension has hooks method?

to observe switching chrome application, can indeed utilize chrome.windows via chrome extension. also, simple firing alert() bring browser application focus.

chrome.windows.onfocuschanged.addlistener(function(window) { if (window == chrome.windows.window_id_none) { // application lost focus alert('don\'t leave me!'); } });

javascript jquery google-chrome google-chrome-extension

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -