About 372,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 · 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. Syntax: prompt(message, default); message is a string of text to display to the user. It can be omitted if there is nothing to show in the prompt window i.e. it is ...

  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. 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 JavaScript window object. It displays a dialog box with a message to the …

  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 object, and pauses script execution until the user responds.

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

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

    Mar 29, 2024 · There are other special methods in JavaScript that can turn out to be important while creating web pages. The alert (), prompt () and confirm () method displays multiple kinds of dialog boxes. In this tutorial, we will learn about these methods with …

  9. 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 means it is available in any JavaScript environment that supports the DOM, such as web browsers.

  10. 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. What is the prompt () Method in JavaScript? The prompt dialog box is very useful when you want to pop-up a text box to get user input.

  11. Some results have been removed
Refresh