0

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?

BreakPhreak
  • 10,940
  • 26
  • 72
  • 108

2 Answers2

1

It sounds like that's an active style applied by the browser. Try adding this to your css:

a:active
{
    border: none;
}

Hope that helps.

Update: If that doesn't work you may want to try

outline: none;
Alex Morales
  • 1,166
  • 9
  • 13
0

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.

BreakPhreak
  • 10,940
  • 26
  • 72
  • 108