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

    Prompt for a user name and output a message: "Hello " + person + "! How are you today?"; More examples below. The prompt() method displays a dialog box that prompts the user for input. …

  2. Learn JavaScript prompt By Practical Examples - JavaScript

    JavaScript prompt() examples. Let’s take some examples to see how the prompt() works. 1) Display a prompt dialog. The following example uses the prompt() to display a dialog that …

  3. JavaScript Message Boxes: alert(), confirm(), prompt()

    JavaScript Message Boxes: alert(), confirm(), prompt() JavaScript provides built-in global functions to display popup message boxes for different purposes. alert(message): Display a …

  4. JavaScript Popup Boxes - W3Schools

    JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box. An alert box is often used if you want to make sure information comes through to the user. When an alert box …

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

  6. JavaScript Prompt Example - Online Tutorials Library

    Learn how to use the JavaScript prompt function effectively with examples. Understand how to get user input smoothly.

  7. JavaScript Dialogue Boxes - GeeksforGeeks

    Nov 7, 2022 · Prompt Box: A prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either “OK” or …

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

  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 …

  10. How to use prompt - Example JavaScript

    The most comprehensive prompt code examples. Find guides, explainers and how to's for every popular function in JavaScript.

  11. Some results have been removed
Refresh