Examples explain ReturnValue meaning

xiaoxiao2021-03-06  96

ReturnValue is the properties of the HTML's Window object in JavaScript. The purpose is to return window values. When you open an IE mode window with the Window.ShowModalDialog function (the mode window knows it, you can't operate the parent window after opening, you can only wait when the mode window is turned off When you can operate it, it is used to return the value of the window, and the following example:

-------------------------------------------------- ---------------------------- // Father.html

Function ShowModal () {var Ret = WINDOW.SHOWMODALDIALOG ("Child.htm", NULL, "DialogWidth: 350px; DialogHeight: 350px; help: no; status: no"); if (re) {Alert ('sub-window returned True! ');} Else {alert (' child window returns! ');

}

>>>>>>>>

-------------------------------------------------- ---------------------------- // child.html Function TRANS {

IF (tag == 0) {WINDOW.RETURNVALUE = false;} else {window.returnValue = true;

}

转载请注明原文地址:https://www.9cbs.com/read-96880.html

New Post(0)