2009-09-01 29 views

回答

1

MSDN

function showList() 
{ 
    var return_value = window.showModalDialog(url, arguments, options); 
    if (return_value) 
    { 
     document.getElementById('A').value = return_value.A; 
     document.getElementById('B').value = return_value.B; 
    } 
} 

來自內部對話

function makeSelection(a, b) 
{ 
    window.returnValue = { A: a, B: b }; 
    window.close();  
}