I'm using Chrome's javascript console (If you're using Chrome or Chromium, you can just press Ctrl + Shift + J now to open it) below the current opened tab.
Is there something I can enter into the console so that the document in the tab above gets the focus and the console looses the focus?
I tried with
chrome.tabs
but it only gives
undefined
The only way to gain focus without closing the console would be to call either alert();
, confirm();
or prompt();
.
Alternatively by closing the console (window.open("javascript:close()","_self");
) , the main tab can gain focus.
https://support.google.com/chrome/bin/answer.py?hl=en&answer=157179
says
(F6 ) Or (Shift + F6)
but you'll have to switch through bunch of things before you reach the main webcontent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With