title: Confirmation delete in .jsp
body: <p>I wish to have a confirmation on a delete button, and am attempting to do it all in one line... this is the regular onClick event without the delete confimration:</p>
  
  <pre><code>onClick='this.form.action="/Config?pg=FIBiller&amp;amp;cmd=delete";'    
  </code></pre>
  
  <p>I found online that a confirm delete can be implemented as such:</p>
  
  <pre><code>"return confirm('Are you sure you want to delete?')"
  </code></pre>
  
  <p>How can I incorporate this into my onClick event so it's one line, don't want to use more javascript? If I must do so, than how would I incorporate the action for a "yes" on the message box in the javascript function?</p>