title: Check if button disabled then alert HTML Onclick
body: <p>well right now I have this checkbox that's enabling / disabling a submit button for my form.</p>
  
  <p>I simply have this code for enabling / disabling it</p>
  
  <pre><code>onclick="if(this.checked){this.form.submit_btn.disabled=false}else{this.form.submit_btn.disabled=true};this.blur();"
  </code></pre>
  
  <p>now I'm just wondering how I can make it so that if they click the button when it's disabled, have it alert them with a certain message.</p>
  
  <p>so add an onclick event to the button and have it be like </p>
  
  <pre><code>if(this.disabled=true){alert('Button disabled!');}
  </code></pre>
  
  <p>or something similar? I'm pretty new to all the onclick stuff.</p>
  
  <p>Thanks</p>