prompt( )

Displays a Prompt dialog with the specified message and an input field.

Interface

PODSWindow

IDL definition
PODSString prompt(
  PODSString msg,
  PODSString def
);
JavaScript synopsis
window.prompt(msg, def)
C synopsis
PODSString PODSprompt(
  PODSWindow* window,
  PODSString msg,
  PODSString def
);
Parameters
  • window   The PODSWindow object.

  • msg   [in] The message to display in the dialog.

  • def   [in] Default value to place in the text field.

Returns

Data that the user entered in response to the prompt; NULL if the user clicked the Cancel button.

See also

alert( ), confirm( )