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 :: call a function on load jquery 
Javascript :: get current url host name in javascript 
Javascript :: three js clock 
Javascript :: use json file for data jquery 
Javascript :: check ObjectId is valid in mongoose 
Javascript :: js timer reload page 
Javascript :: breakline in react native 
Javascript :: get children length jquery 
Javascript :: page reload timeout 
Javascript :: javascript get number of elements in object 
Javascript :: javascript change css float property 
Javascript :: how to install react in windows 
Javascript :: javascript check if object is empty 
Javascript :: javascript get current month start and end date 
Javascript :: java.lang.outofmemoryerror (no error message) react native 
Javascript :: sorting array without sort method in javascript 
Javascript :: jquery onlcick css change 
Javascript :: npm global flag 
Javascript :: set select option as selected jquery 
Javascript :: import map in angular 
Javascript :: javascript ucwords 
Javascript :: javascript close window after print 
Javascript :: axios Cross origin http://localhost forbidden 
Javascript :: javascript date minus seconds 
Javascript :: node js quit 
Javascript :: styling scrollview height in react native 
Javascript :: axios delete is throwing cors error 
Javascript :: redirect in netlify react 
Javascript :: convert a string to html element in js 
Javascript :: heroicons reactjs 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =