About 21,400 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

    Aug 19, 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. How to take user input in JavaScript? - GeeksforGeeks

    Jul 23, 2025 · The prompt method is very helpful in situations where you require rapid and straightforward user input. The prompt is a blocking function, which means it halts JavaScript …

  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 Guide: Learn How to Get User Input

    Apr 2, 2025 · Learn how to use JavaScript's window.prompt method effectively with examples and detailed explanations. Enhance your web development skills with this step-by-step tutorial.

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

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

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

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

  10. JavaScript Prompt Dialog Box Tutorial - CodeForGeek

    Aug 20, 2025 · The prompt () method in JavaScript, also known as a window prompt, is used to display a dialog box that asks users to provide input. This method lets the user enter an input …