Is it possible to highlight the URL bar (set focus to the location bar) using Google Chrome extensions or Safari extensions?
Using Firefox extensions, one can highlight the URL bar like this:
var addressBar=document.getElementById('urlbar');
addressBar.focus();
addressBar.select();
I'm not sure if there's similar functionality in Chrome and Safari.
Thanks in advance for your help!
See Question&Answers more detail:os