About 180,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. Test Page For JavaScript Alerts - herokuapp.com

    There are three main JavaScript methods which show alert dialogs: alert, confirm and prompt. This page has examples of each. The following button will display an alert when clicked.

  4. Interaction: alert, prompt, confirm - The Modern JavaScript Tutorial

    Sep 8, 2020 · prompt shows a message asking the user to input text. It returns the text or, if Cancel button or Esc is clicked, null. confirm shows a message and waits for the user to press …

  5. html - Javascript Prompt () Input validation - Stack Overflow

    Jun 20, 2013 · I'm struggling with the HTML code to validate the input of a Javascript prompt() in an external js file. I understand calling the Javascript function to validate and I know how to …

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

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

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

  9. JavaScript Popup Boxes - W3Schools

    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 "Cancel" to proceed after …

  10. Javascript Prompt() Method - Naukri Code 360

    May 1, 2023 · To prompt a button in JavaScript, use the prompt() method. This method takes two arguments: the first argument is the label that displays in the text box, and the second …

  11. Some results have been removed
Refresh