returnValue property (window)
Specifies or retrieves the value returned from a modal dialog window.
Modal dialog windows can be created with the showModalDialog method. The showModalDialog method does not return until the modal dialog is closed. With the returnValue property, the value returned by the showModalDialog method can be retrieved. This property facilitates the communication between the opener and the dialog window.
The returnValue property is supported in Firefox from version 3.
You can find the related objects in the Supported by objects section below.
This property is read/write.
Variant that specifies or retrieves the return value.
Default: this property has no default value.
Example HTML code 1:
This example shows how to generate a modal dialog, and how to communicate between the opener and the modal window:
Did you find this example helpful?
User Contributed Comments