1. Technology

Prompt

By

Definition: The prompt function that is predefined for use in Javascript is similar to the alert and confirm functions in that it will display a popup message on the screen. The difference with prompt is that this [popup actually has an input field where your visitor can type in a value to be returned to your script. This is not a reserved word so you can declare your own variable or function called prompt but if you do then you will not be able to use the built-in function.
Examples:
password=prompt('Please enter your password:','');
Top Related Searches
  • popup message
  • input field
    1. About.com
    2. Technology
    3. JavaScript

    ©2014 About.com. All rights reserved.