About 872,000 results
Open links in new tab
  1. javascript - How to create a dialog with “Okand “Cancel” …

    Jan 12, 2022 · Use window.confirm instead of alert. This is the easiest way to achieve that functionality. How to do this using 'inline' JavaScript: <input type="text" name="q" /> <input …

  2. JavaScript Popup Boxes - W3Schools

    When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. If the user clicks "OK" the box returns the input value. If the user clicks …

  3. JavaScript Message Boxes: alert(), confirm(), prompt()

    JavaScript provides built-in global functions to display popup message boxes for different purposes. alert (message): Display a popup box with the specified message with the OK …

  4. Javascript Window confirm() Method - GeeksforGeeks

    Aug 20, 2024 · The confirm() method in JavaScript displays a dialog box with a message and two buttons: OK and Cancel. It is often used to get user confirmation before an action, returning …

  5. Create a confirm popup box in JavaScript with “Ok” and “Cancel

    In this tutorial, we will learn how to create confirm pop-up box in JavaScript. We can use confirm(parameter string) method with parameter as message. It returns a boolean value …

  6. How to Create a Dialog with Ok and Cancel Options - sqlpey

    Nov 23, 2024 · The most straightforward way to create a confirmation dialog is to leverage the built-in confirm() method provided by JavaScript. This function will generate a prompt with …

  7. JavaScript Popup Boxes

    alert(): Displays a pop-up with a specified message and an 'OK' button. Ideal for quick warnings or alerts to users. Use it wisely to avoid being overly intrusive. confirm(): Prompts a yes-or-no …

  8. Make javascript alert Yes/No Instead of Ok/Cancel

    Aug 12, 2016 · How to create a yes/no/cancel alert box instead of ok/cancel alert box in Javascript? You can't change default, confirm dialog. In an attempt to solve a similar situation …

  9. Window confirm() Method - W3Schools

    The confirm() method displays a dialog box with a message, an OK button, and a Cancel button. The confirm() method returns true if the user clicked "OK", otherwise false. A confirm box is …

  10. JavaScript Popup Boxes: Alert(), Prompt(), & Confirm() Methods

    Mar 29, 2024 · The confirm() method in JavaScript is used to display a dialog box with a message and the OK and Cancel buttons. The confirm() method allows users to confirm or cancel an …

Refresh