Javascript Reference
Categories: window

javascript window returnValue

@July 25, 2008, 2:12 p.m.
returnValue Firefox/Netscape/NN n/a IE 4(Win)/5(Mac) Chrome/Safari/DOM n/a  
  Read/Write  

A value to be returned to the main window when an IE dialog window (generated by  showModalDialog( ) method only) closes. The value assigned to this property in a script running in the dialog window becomes the value returned by 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 the userName variable when the dialog box closes and script execution continues.

 
Value

Any scriptable data type.

 
Default

None.

Hello. I see that you don't update your site too often.
I know that writing posts is boring and time consuming.
But did you know that there is a tool that allows you to create new articles using existing content
(from article directories or other pages from your niche)?

And it does it very well. The new articles are unique and pass the copyscape
test. Search in google and try: miftolo's tools
TiaJuicy - 2018-08-19
Im grateful for the forum topic.Really looking forward to read more. Fantastic. Panke
WilliamWhox - 2016-05-20
I have the same problem.
javac - 2014-05-06

Powered by Linode.