I have a delete button that is tied to some comments on a page i have. When you click the delete button i am trying to get a confirm dialog box to pop up asking if you are
onclick="if (confirm('Are you...?')) commentDelete(1); return false"
You are missing an if. In your version, first you get a question, and then regardless of the answer, you call commentDelete.
if
commentDelete