Js Alert Yes No

[Solved] Js Alert Yes No | Swift - Code Explorer | yomemimo.com
Question : javascript confirm yes no

Answered by : vikash-kumar

var proceed = confirm("Are you sure you want to proceed?");
if (proceed) {
  //proceed
} else { //don't proceed
}

Source : | Last Update : Sat, 09 May 20

Question : js alert yes no

Answered by : andrew-hyder

if (confirm('Are you sure you want to donate to Andrew Hyder?')) { // true (paypal.me/andrewdhyder)
} else { // false
}

Source : | Last Update : Thu, 13 Aug 20

Question : javascript prompt yes/no

Answered by : ravi-jajam

var answer = window.confirm("Save data?");
if (answer) { //some code
}
else { //some code
}

Source : https://stackoverflow.com/questions/9334636/how-to-create-a-dialog-with-yes-and-no-options | Last Update : Tue, 28 Sep 21

Question : how to take yes or no in js

Answered by : inquisitive-iguana-sqeztyrmmkly

ans = confirm('continue ?');
//returns a boolean response
if (ans){	//condition returns true...
}
else(){	//condition returns false...
}

Source : | Last Update : Mon, 26 Apr 21

Question : javascript confirm yes no

Answered by : frdrik-guay

let proceed = confirm("Are you sure you want to proceed?");
if (proceed) { //proceed
} else { //don't proceed
}

Source : | Last Update : Fri, 25 Jun 21

Answers related to js alert yes no

Code Explorer Popular Question For Swift