Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript confirm yes no

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

js alert yes no

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

javascript prompt yes/no

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

how to take yes or no in js

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

javascript confirm yes no

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

PREVIOUS NEXT
Code Example
Javascript :: concatenate multiple arrays javascript 
Javascript :: map list in javascript 
Javascript :: disable button based on condition angular 
Javascript :: remove object from array by name javascript 
Javascript :: java json string to map 
Javascript :: javascript math methods 
Javascript :: javascript increment by 1 
Javascript :: elastic get data from specific fields 
Javascript :: copy text on button click in jquery 
Javascript :: cm to feet javascript 
Javascript :: javascript toggle button 
Javascript :: how to install jsonwebtoken in next js 
Javascript :: how to seperate words seperated by commas using javascript 
Javascript :: jquery chrome extension 
Javascript :: react native grid view 
Javascript :: make a flat object from object of object list 
Javascript :: http get response body node js 
Javascript :: visual studio code create react component shortcut 
Javascript :: pass multi variable in ajax 
Javascript :: remove element from array javascript by index 
Javascript :: apply css to iframe content javascript 
Javascript :: convert a string to number in javascript 
Javascript :: javascript get query params from url 
Javascript :: javascript swap variables 
Javascript :: commander js 
Javascript :: How to test useEffect in react testing library 
Javascript :: generate random 6 digit number javascript 
Javascript :: create dynamic element in javascript 
Javascript :: jquery is emptyobjec 
Javascript :: angular return observable with error 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =