Wednesday, January 14, 2026

Confirm button in Javascript

  if (confirm("Press a button!")) {

    txt = "You pressed OK!";

  } else {

    txt = "You pressed Cancel!";

  }

No comments:

Post a Comment