I found that if there is a a link in the page which does not link to a new page,then when user click it,there will be a dotted line around the element,it will o
a
In my case it was a button, and apparently, with buttons, this is only a problem in Firefox. Solution found here:
button::-moz-focus-inner { border: 0; }