Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use yes no statement with alert in tampermonkey

var proceed = confirm("Are you sure you want to proceed?");
if (proceed) {
  alert("You proceed!")
} else {
  alert("You didnt proceed!")
}
 
PREVIOUS NEXT
Tagged: #statement #alert #tampermonkey
ADD COMMENT
Topic
Name
8+5 =