Google Chrome does not support the showModalDialog modal dialog box and cannot return the returnValue. Many of you may have encountered this problem. The solution is very simple. the following ideas, you can see that Chrome version 37.0.2062.103 m does not support showModalDialog modal dialog box and cannot return returnValue.
Projects used previously cannot be executed normally.
I found a compromise and used window. open to replace showModalDialog to operate the elements of the parent page using window. open instead of showModalDialog.
The Code is as follows:
Window. open ("xsp/exesp? Todo = 13 "," "," height = 500, width = 280, status = yes, toolbar = no, menubar = no, location = no ");
The Code is as follows:
Window. close ();
Optional values opener.doc ument. getElementById ("classid"). value = treeid;
Optional values opener.doc ument. getElementById ("classname"). value = treename;