tom tom - 2 years ago 88
HTML Question

How to remove th select box after button clicked?

<input type="button" id="AutoRefresh" value="Auto Refresh" onclick="toggleRefresh();"/>

Before Click:

Before Click

After Click:

After Click

How to prevent the button from being visually selected?

Answer Source

Something like..

/* Outline due to focus */
input[type="button"]:focus {
    outline: none !important;   


/* Any outlines applied */
#AutoRefresh { 
    outline: none !important;
} your CSS file / <style> tag, or whatever method of styling you apply.

For Firefox:

input[type="button"]::-moz-focus-inner {   
    border : 0px;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download