Halt Protocol after JavaScript confirm function

Hey guys, I'm trying to implement a confirm yes or no box (onclick for the submit button), so that if the user cancels in the confirm box, then the protocol will halt.

I have the confirm box, but I can't seem to find a function that will halt the submit button. Any ideas?

function areYouSure() {
var confirmation=confirm("Are you sure you want to delete this file?");
if (confirmation==true)
  {
    /*Something here*/
  }
else
  {
    /*Something here*/
  }
}