alert() and confirm() are from the past