About 1,320,000 results
Open links in new tab
  1. Window prompt() Method - W3Schools

    The prompt() method returns the input value if the user clicks "OK", otherwise it returns null. A prompt box is used if you want the user to input a value. When a prompt box pops up, the user …

  2. Window: prompt() method - Web APIs | MDN - MDN Web Docs

    Feb 20, 2025 · Learn about the Window.prompt() method, including its syntax, code examples, specifications, and browser compatibility.

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

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

  5. JavaScript Popup Boxes: Alert(), Prompt(), & Confirm() Methods

    Mar 29, 2024 · In JavaScript, the alert(), prompt() and confirm() methods can be turned out as valuable tools to interact with users. By combining these methods into your website, you can …

  6. JavaScript Prompt Example - Online Tutorials Library

    The prompt() method in JavaScript allows developers to collect user input through a pop-up dialog box. What is the prompt() Method in JavaScript? The prompt dialog box is very useful when …

  7. Understanding and Using the prompt Function in JavaScript

    Nov 5, 2023 · The prompt function is a simple way to interact with users in JavaScript. We explore how to use prompt, its syntax, and provides examples of its use. Syntax of prompt. The basic …

  8. JavaScript Window prompt() Method | CodeToFun

    Nov 21, 2024 · In this guide, we'll explore the prompt() method, understand its syntax, explore example usage, and discuss best practices and use cases. The prompt() method is part of the …

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

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

  11. Some results have been removed
Refresh