<input type="button" id="AutoRefresh" value="Auto Refresh" onclick="toggleRefresh();"/>
Before Click:
After Click:
How to prevent the button from being visually selected?
Something like..
/* Outline due to focus */
input[type="button"]:focus {
outline: none !important;
}
or..
/* Any outlines applied */
#AutoRefresh {
outline: none !important;
}
..in your CSS file / <style>
tag, or whatever method of styling you apply.
For Firefox:
input[type="button"]::-moz-focus-inner {
border : 0px;
}