alert, confirm, input code example
Example 1: alert confirm prompt javascript
if (confirm("Press a button!")) {
console.log("Accepted")
} else {
console.log("Declined")
}
Example 2: Confirm alert
$.alert({ title: 'Alert!', content: 'Simple alert!',});