Jquery - waiting for user input
问题 im trying to make a popup that comes up to confirm a users action (deleting a row in a table, for example..). aiming at making the popup entirely HTML and Javascript. What i can't get my head around is how i would make the javascript wait for the users input, but still function for other javascript events. (other click triggered stuff, etc..). What i thought i'd do is something like if(makePopup("Are you sure?") == true) { //bla bla } where makePopup function would create a popup containing