confirm box in javascript with yes no option

Window confirm() Method

Confirm box in javascript with yes no option.

Example
Display a confirmation box:-

confirm("Press yes or no button!");

2020-01-16