Defaulting to the cancel button
var ans = confirm("Are you sure you would like to delete this file?");
It seems to always default to the 'OK' button.
Any help with this would be most appreciated.