how to dim a button in javascript code example Example: javascript disable button document.getElementById(BUTTON_ID).disabled = true;