Name
returnValue — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
A value to be returned to the main window when the IE modal dialog
window closes. The value assigned to this property in a script
running in the dialog window is returned as the value to the
showModalDialog( ) method in the main window. For
example the document in the modal dialog window may have a statement
that sets the returnValue property with
information from the dialog:
window.returnValue = window.document.forms[0].userName.value
The dialog is created in the main document with a statement like the following:
var userName = showModalDialog("userNamePrompt.html")Whatever value is assigned to returnValue in the
dialog is then assigned to userName when the
dialog box closes and script execution continues.
Value
Any scriptable data type.
Default
None.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access