we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "return value of confirm box in javascript"
Lara
19 Sep 2020
1A confirm box is often used if you want the user to verify or accept something. When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed. 
2If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.