javascript - How to deselect a HTML button tag with a simple chrome extension -


i have created chrome extension simple popup.html file contains button tag first element inside body. when test on chrome 26 under os x, each time click on extension icon triggers popup, button seems selected/focused given see blue halo. cannot figure out how disable auto focus. seems autofocus applied on first tag popup.html file. tried apply blur() on button instance retrieved document.getelementbyid not work.

is there solution? workaround? alternative?

the solution found consists of adding tabindex="1" on html tag. tried put focus on other elements or use autofocus="autofocus" not work.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

How to call a javascript function after the page loads with a chrome extension? -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -