About 4,300,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 null. …

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

  5. Learn JavaScript prompt By Practical Examples - JavaScript Tutorial

    The prompt() method instructs the web browser to display a dialog with a text, text input field, and two buttons OK and Cancel. The dialog prompts the user to enter some text and wait until the …

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

  7. Using the prompt() Function in JavaScript: A Comprehensive Guide

    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 …

  8. How to use prompt in JavaScript - Altcademy Blog

    Aug 28, 2023 · In JavaScript, the prompt function is a simple yet versatile tool that can bring interactivity to your web pages. You can think of it as a friendly concierge or a dialog box that …

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

  11. Some results have been removed
Refresh