detect focus on browser address bar?

Posted by jedierikb on Stack Overflow See other posts from Stack Overflow or by jedierikb
Published on 2010-03-23T15:11:04Z Indexed on 2010/03/23 15:13 UTC
Read the original article Hit count: 345

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 works too well in safari mac -- you can't put focus on the address-bar!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-events