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

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

  4. JavaScript Popup Boxes - W3Schools

    JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box. An alert box is often used if you want to make sure information comes through to the user. When an alert box …

  5. How to take user input in JavaScript? - GeeksforGeeks

    Aug 13, 2024 · Here we will see the approach to take user input in JavaScript, specifically using the prompt method, which is perfect for beginners. The prompt method is part of the …

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

    In JavaScript, global functions can be accessed using the window object like window.alert(), window.confirm(), window.prompt(). The alert() function displays a message to the user to …

  7. Learn JavaScript prompt By Practical Examples

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

  8. JavaScript | window | prompt() | Codecademy

    Jun 2, 2023 · The prompt() function is a built-in JavaScript method that displays a modal dialogue box prompting the user for input. It is part of the Web API, provided by the browser’s window …

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

  10. JavaScript Window prompt () Method - CodeToFun

    Nov 21, 2024 · The prompt() method is a handy feature that allows you to obtain user input through a simple dialog box. In this guide, we'll explore the prompt() method, understand its …

  11. Some results have been removed
Refresh