Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect focus on browser address bar?

Is there a way to detect when focus has been put onto the address-bar or the browser-search-bar?

I ask because I am trying to keep focus on one element in my document, but adding a blur() listener to that element (which calls focus() on that same element) works too well in Safari Mac -- you can't put focus on the address-bar when you setFocus with a timeout of 0 (necessary for a plugin).

like image 473
jedierikb Avatar asked Mar 23 '10 15:03

jedierikb


1 Answers

No, it is not possible

like image 51
Joel Martinez Avatar answered Sep 21 '22 20:09

Joel Martinez