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 :: js ternaire 
Javascript :: new features of angular 11 
Javascript :: like php date("Y-m-d",$value) in javascript 
Javascript :: check unique object in array javascript site:stackoverflow.com 
Javascript :: js remove trailling lines 
Javascript :: Century From Year 
Javascript :: Match All Letters and Numbers freecodecamp 
Javascript :: vue router Async Scrolling 
Javascript :: javascript 
Javascript :: adding all elements in an array javascript 
Javascript :: alex morgan 
Javascript :: vscode jest disable auto run 
Javascript :: react native elements bottom sheet 
Javascript :: scroll to top vue 
Javascript :: create slug in express 
Javascript :: expo cli vs react native cli 
Javascript :: Highest Scoring Word 
Javascript :: ajax 
Javascript :: display month friday 13th javascript year 
Javascript :: mongoose add document 
Javascript :: react write into json file 
Javascript :: check if browser is chrome mobile 
Javascript :: lexical environment in javascript 
Javascript :: angular get route last segment 
Javascript :: how to check element has event or not in jquery 
Javascript :: localstorage syntax 
Javascript :: to 2 decimal places javascript 
Javascript :: preventing form from submitting 
Javascript :: bind this react 
Javascript :: copy svg to clipboard javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =