2014-02-11 253 views

回答

0

肯定是有的。看看這裏... http://blog.davidkaspar.com/archives/2005/10/showmodaldialog-in-firefox-and-frames.php

,或者你可以試試這個:

var prevReturnValue = window.returnValue; // Save the current returnValue 
window.returnValue = undefined; 
var dlgReturnValue = window.showModalDialog(...); 
if (dlgReturnValue == undefined) // We don't know here if undefined is the real result... 
{ 
    // So we take no chance, in case this is the Google Chrome bug 
    dlgReturnValue = window.returnValue; 
} 
window.returnValue = prevReturnValue; // Restore the original returnValue