title: Html button action only on first click
body: <p>I can set action on click for html button. But I need to set action only on FIRST click. Is there any way to do this? The button is radio in form. Some javascript maybe?</p>
  
  <p>What's important - the radio button still might be changed. But action has to be done only once. </p>
  
  <p>This doesn't work</p>
  
  <pre><code>function myfunction(i){
  oForm = document.forms["myform"];
  if(oForm.elements["field"+i].checked)
      alert("action done earlier");
  else
      action
  }
  </code></pre>