Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js confirm

// The confirm function is used to display a dialog with ok and cancel. Usage:

var content = confirm("Hello"); // The "hello" means to show the following text
if (content === true) {
  // Do whatever if the user clicked ok.
} else {
  // Do whatever if the user clicks cancel.
}

// You can also use window.confirm()
 
PREVIOUS NEXT
Tagged: #js #confirm
ADD COMMENT
Topic
Name
8+8 =