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

  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. How to Take Input in JavaScript from Users | Prime Inspire

    Apr 21, 2025 · Learn how to take user input in JavaScript with examples! From prompt() to forms, this guide covers it all. Boost skills with our course!

  5. 3 Methods to ask for user input in the JavaScript Console

    Dec 7, 2024 · The prompt() function is a simple way to ask for user input directly in the browser. It shows a dialog box with a message and an input field where users can type their responses.

  6. JavaScript Window prompt() Method | CodeToFun

    Nov 21, 2024 · Explore interactive user input with the JavaScript Window prompt() method. Easily gather information through customizable pop-up prompts in your web applications. Enhance …

  7. How to get user input in JavaScript - Altcademy Blog

    Jun 9, 2023 · The simplest way to get user input in JavaScript is by using the prompt() function. This function displays a pop-up dialog box that contains a message, an input field for the user …

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

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

  10. Understanding and Using the prompt Function in JavaScript

    Nov 5, 2023 · We explore how to use prompt, its syntax, and provides examples of its use. The basic syntax of prompt is as follows: message: A string of text to display to the user. default: A …

  11. Some results have been removed
Refresh