window.opener.returnValue in Chrome with showModalDialog
10:05 21 Jan 2013

I am trying to use window.opener.returnValue with showModalDialog. There are numerous references to a technique which can be used to workaround window.returnValue not working. However it just doesn’t seem to work in Version 23.0.1271.97 of Chrome.

If I comment out the self.close line as follows, and put alerts in before and after the return value is set then both alerts show as ‘undefined’:

The caller a1.html



    
 


 
 


The called b1.html:







 
 


javascript return-value showmodaldialog