benchivers
01-07-2004, 10:06 AM
In javascript is it possible to default to the cancel button in a confirm prompt box e.g:
var ans = confirm("Are you sure you would like to delete this file?");
if (ans)
return true;
else
return false;
It seems to always default to the 'OK' button.
Any help with this would be most appreciated.
Many Regards,
Ben Chivers
var ans = confirm("Are you sure you would like to delete this file?");
if (ans)
return true;
else
return false;
It seems to always default to the 'OK' button.
Any help with this would be most appreciated.
Many Regards,
Ben Chivers