JavaScript Reference/Javascript Methods/ShowBrowserUI

Материал из Web эксперт
Перейти к: навигация, поиск

"ShowBrowserUI()" Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        window.external.ShowBrowserUI("LanguageDialog", null);
    }
    function function2() {
        window.external.ShowBrowserUI("OrganizeFavorites", null);
    }
    function function3() {
        window.external.ShowBrowserUI("PrivacySettings", null);
    }
</script>
<input type="button" value="Open the Language Preferences dialog box." onclick="function1();">
<input type="button" value="Open the Organize Favorites dialog box." onclick="function2();">
<input type="button" value="Open the Privacy Preferences dialog box." onclick="function3();">
</body>
</html>



"ShowBrowserUI()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |external                                                      |
+----------------+--------------------------------------------------------------+



"ShowBrowserUI()" Syntax, Parameters and Note

Note:
Opens the specified dialog.
    
Syntax:
    
window.external.ShowBrowserUI(param1, param2)

Parameters:
    param1   Required; the type of dialog window to open. 
                       LanguageDialog, 
                       OrganizeFavorites, 
                       PrivacySettings.
    param2   Required; only null value is presently accepted.