How is it possible to close the dialog window or set a time limit, etc.?
var result= confirm("This operation may take up to one minute. Do you want to proceed?");