How to create a confirmation box?

Q

How to create a confirmation box?

✍: Guest

A

confirm("Do you really want to launch the missile?");

2011-03-08, 3120👍, 0💬