John Hesch

Echoing my thoughts and interests

Firefox has a really annoying quirk that puts a dotted line around the text in an HTML form submit button. I searched and found some CSS hacks but none of them really worked. Finally I added onfocus="blur()" to the submit button and the dotted line is gone.

Here's the form button after clicking on submit:

using the following code

JavaScript:
  1.  
  2. <input type="Submit" name="Submit" id="Submit" value="Print Order" onclick="this.disabled=true;" />
  3.  

After I add onfocus="blur()"

JavaScript:
  1.  
  2. <input type="Submit" name="Submit" id="Submit" value="Print Order" onclick="this.disabled=true;" onfocus="blur()" />
  3.  

The dotted line is gone.

  1. Chad Said,

    thank you for this. i agree, this is a very annoying quirk in firefox.

Graytone | Design: Tenant Report