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
You are treating the confirm is if it is a if statement, it just returns a Boolean true or false.
if
if(confirm('foo')){ alert('bar'); }