If you are talking about Internet Explorer, you might try using
onfocus="if(this.blur)this.blur();" The blur gets rid of the outline.
To see an example of this code used in a web page, go to Jason Cranford
Teague's book site on DHTML and CSS (Chapter 18 "Creating Image Rollovers with
CSS") Here is where it is.
http://www.webbedenvironments.com/dhtml/ Then choose
Code Examples -> 18| Navigation and Controls->Creating Image Rollovers with CSS.