Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript option yes/no popup

if (confirm('Are you sure you want to save this thing into the database?')) {
  // Save it!
  console.log('Thing was saved to the database.');
} else {
  // Do nothing!
  console.log('Thing was not saved to the database.');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #option #popup
ADD COMMENT
Topic
Name
6+8 =