About 99,200 results
Open links in new tab
  1. Window prompt() Method - W3Schools

    The prompt() method displays a dialog box that prompts the user for input. The prompt() method returns the input value if the user clicks "OK", otherwise it returns null.

  2. Window: prompt() method - Web APIs | MDN - MDN Web Docs

    Feb 20, 2025 · window.prompt() instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the …

  3. JavaScript Popup Boxes - W3Schools

    Prompt Box. A prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either "OK" or "Cancel" to …

  4. Javascript Window prompt() Method - GeeksforGeeks

    Sep 23, 2024 · The prompt() method in JavaScript displays a dialog box that prompts the user for input. The prompt() method returns the input value when the user clicks “OK” else returns null. …

  5. JavaScript Dialogue Boxes - GeeksforGeeks

    Nov 7, 2022 · Prompt Box: A prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either “OK” or …

  6. Learn JavaScript prompt By Practical Examples - JavaScript Tutorial

    In this tutorial, you will learn how to use the JavaScript prompt () method to display a dialog with a message prompting for user input.

  7. How to Create Alert, Prompt, Confirm Dialog Boxes Using JavaScript ...

    Jun 7, 2021 · Here we discuss how to create alert popup box using JavaScript with example code. Learn more about creating alerts in Bootstrap 4. How it Works? The JavaScript alert () function …

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

    Mar 29, 2024 · The alert(), prompt() and confirm() method displays multiple kinds of dialog boxes. In this tutorial, we will learn about these methods with the help of practical examples. …

  9. JavaScript Window prompt() Method: Displaying Prompt Box

    Feb 7, 2025 · The window.prompt() method in JavaScript is used to display a dialog box that prompts the user for input. This method is a simple way to gather information from users, such …

  10. JavaScript prompt - Dialog box - w3resource

    Aug 19, 2022 · To interact with the user we use prompt(), which asks the visitor to input some information and stores the information in a variable.

Refresh