About 329,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 …

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

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

  6. JavaScript Prompt() method - Stack Overflow

    Apr 19, 2012 · var a, d, t; while ( ! a ) a = prompt ( "Which Artist?" ); while ( ! d ) d = prompt ( "How many DVDs?" ); while ( ! t ) t = prompt ( "How many tapes?" ); alert ( "You want " + t + " Tapes, …

  7. JavaScript Prompt Example - Online Tutorials Library

    In this article, we will learn to use the prompt () function in Javascript. The prompt () method in JavaScript allows developers to collect user input through a pop-up dialog box. What is the …

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

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

    Feb 7, 2025 · What is the window.prompt () Method? 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 …

  10. Using the prompt () Function in JavaScript: A Comprehensive …

    Mar 3, 2024 · The prompt() function is a simple yet powerful tool in JavaScript, primarily used to display a dialog box that prompts the visitor for input. It is part of the window object, which …

  11. Some results have been removed
Refresh