Search code examples
androidhtmlcssbrowsersamsung-mobile

How to remove visual feedback frame on Samsung Galaxy browser


When a link is clicked a dark orange frame is drawn around it. Sometimes it stays till the next scroll or screen touch.

When some other elements are clicked - the orange frame appears as well sometimes by the size of the clicked element (div, canvas), sometimes bigger.

How this (platform-dependent?) visual feedback tweak is called and (main question) is there a progammatic (javascript?) way to turn it off?


Solution

  • I had a (clickable) canvas element, surrounded by a fully transparent div. The dark orange outline was (surprisingly) generated by a div (not canvas). Even more surprising - the size of the outline was much bigger than the size of div (no other elements - checked). So, I've decided to switch the outline off and this (http://stackoverflow.com/questions/7398763/android-browser-remove-outline-border-when-anchor-is-focused) answer solved the problem.