confirm() function. All you need to do is pass your message to this function.
The above example works, but it doesn't really do much. You could make your website more useful by including the confirm() function within another function.
Here's an example:
Visit one of these excellent websites: