About 32,900,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 returns the text entered by the user in the input field as a string. If the user cancels the dialog box, null is returned. Example: This HTML code creates …

  4. Adding input prompts to HTML form fields - Stack Overflow

    May 18, 2011 · I'm looking for a good way to add input prompts to my HTML form fields- The same way StackOverflow uses light gray text as prompts within all of its text fields. Figured …

  5. Developing Interactive Prompts That Respond to String Input in ...

    Dec 12, 2024 · By leveraging JavaScript, developers can construct elegant and responsive prompts to enhance user experience on web applications. In this article, we'll explore how to …

  6. Learn JavaScript prompt By Practical Examples - JavaScript Tutorial

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

  7. JavaScript window.prompt Guide: Learn How to Get User Input

    Apr 2, 2025 · In this article, we explore the window.prompt method in JavaScript. This method displays a dialog box that prompts the visitor for input, making it useful for simple user …

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

  9. JavaScript | Input value from the user using prompt

    Jul 30, 2023 · To input numbers i.e., integer values in JavaScript using the prompt() method, you need to parse the input value because the prompt() method returns the string. To parse the …

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

  11. Some results have been removed
Refresh