2014-01-20 32 views

回答

0

msgBox(title, prompt, buttons)。返回:字符串 - 用戶點擊的按鈕的小寫文本。

實施例:

function testMsgBox() { 
    var _button = Browser.msgBox('Execute function(experimental)', 'Do you really want to proceed?', Browser.Buttons.YES_NO); 
    if (_button === 'yes') 
    //TODO 'yes' 
    else 
    //TODO 'no' 
}