Black box after using back button

I’m trying to design my website, and whenever I use the back button, and return to the page before on my site, there is a black dotted box around the link on which I clicked to go the page. This happens whether the link is an image or a text anchor link.

Is there any way of getting rid of this? It happens whether I use the back button I’ve created, or the browser’s back button in the toolbar.

Many thanks for any advice!

Wow! That completely worked! Brilliant, thank you very much!

put this in your css

a, a:link, a:active, a:visted {
  outline: none;
}

Oh! Thank you, that is very useful to know.

Of course by removing that you make it impossible for anyone without a mouse to use your page. That outline is there so that people without a mouse can see which field has the focus so they know what they are interacting with when they press the enter or contextmenu key on their keyboard. Without the outline all they can do is to press the contextmenu key and select back so as to leave your broken web site.