certo che esiste...si chaima window.confirm() e restituisce true se si clicca ok false se si clicca su annulla
edit: in ritardo..