confirm box in jquery with yes no option before page change code example
Example: jquery alert with yes no
if (confirm('Are you sure ?')) {
console.log('ok');
}else
{
console.log('cancel')
}
if (confirm('Are you sure ?')) {
console.log('ok');
}else
{
console.log('cancel')
}