confirm javascript
var proceed = confirm("Are you sure you want to proceed?");
if (proceed) {
//proceed
} else {
//don't proceed
}alert("string");function alertSomethingOrPopUp()
{
alert("Hi! This is a popup!");
}
alertSomethingOrPopUp();$("#complexConfirm").confirm({
title:"Delete confirmation",
text:"This is very dangerous, you shouldn't do it! Are you really really sure?",
confirm: function(button) {
alert("You just confirmed.");
},
cancel: function(button) {
alert("You aborted the operation.");
},
confirmButton: "Yes I am",
cancelButton: "No"
});alert(varible);if (window.confirm("Une nouvelle fenêtre va s'ouvrir.")) {
window.open("fenetre.html", "Nouvelle fenêtre", "");
}
Also in JavaScript:
- console table javascript
- eventlistener javascript
- regex special characters javascript
- js comparison operators
- how to see my timezone using js
- react web worker
- how to get all elements with same class in javascript
- how to get element from arraylist react
- javascript conver time into 24 hour format
- how to multiple loop in javascript using for
- how to print the value of variable in javascript in html
- express receive post data
- push javascript
- jquery growl cdn
- nan in js
- get pods on specific node
- react useref in useeffect
- javascript tutorialspoint
- hrtime to milliseconds
- functional component how to add to existing array react
- clear form inside modal after close reactjs
- javascript add nd st th to number
- redirect to link using jquery on new tab
- js hash table example