Chrome Extension - first link is auto-focused in popup
How do I stop my Google Chrome extension's default action to auto-focus the first link in my popup.html ? I know I could probably do some roundabout hack with JS or change the :focus CSS, but I think this is throwing off something else I'm trying to do and I'd prefer to stop the root cause of it. The easiest (and javascript free!) way is to simply add tabindex="-1" to any element which you don't want to receive automatic focus. link0ff Perhaps auto-focus was intended for a convenience, but often it does a disservice. Since I see no way to stop the root cause, I found some roundabouts. One is