About 224,000 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 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. …

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

    Jun 7, 2021 · Learn how to create alert, prompt and confirm dialog boxes using JavaScript along with syntax, example code and how it looks on a browser. Alert box is to show a message, …

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

    Feb 7, 2025 · A comprehensive guide to the JavaScript window.prompt() method, covering syntax, usage, and examples for displaying prompt boxes and handling user input.

  6. 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. …

  7. JavaScript Popup Boxes

    When you're making a website and you want to show messages or ask users for something, JavaScript has these cool methods: alert (), confirm (), and prompt (). They pop up boxes on …

  8. JavaScript Prompt - Quackit Tutorials

    The 'prompt' box is created using JavaScript's built-in prompt() function. When the JavaScript prompt() function is triggered, a small box will pop up and display a message to the user …

  9. 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.

  10. JavaScript Popup Boxes - W3Schools

    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 proceed after …

Refresh