You are here: Reference > JavaScript > client-side > browser > methods > ShowBrowserUI (external)

ShowBrowserUI method (external)

Browser support:
Opens the specified system dialog.
If you need to open the standard Windows Color dialog box, use the ChooseColorDlg method in Internet Explorer.

Syntax:

object.ShowBrowserUI (dialogBoxType, null);
You can find the related objects in the Supported by objects section below.

Parameters:

dialogType
Required. String that specifies the type of the dialog to open.
One of the following values:
LanguageDialog
Opens the Language Preference dialog.
OrganizeFavorites
Opens the Organize Favorites dialog.
PrivacySettings
Opens the Privacy dialog.
ProgramAccessAndDefaults
Opens the Set Program Access and Defaults dialog.
null
Required. Always set to null.

Return value:

Depends on the specified dialog.

Example HTML code 1:

This example illustrates the use of the ShowBrowserUI method:
<head>
    <script type="text/javascript">
        function ShowBrowserDialog (type) {
            window.external.ShowBrowserUI (type, null);
        }
    </script>
</head>
<body>
    <button onclick="ShowBrowserDialog ('OrganizeFavorites');">Open the Organize Favorites dialog!</button>
    <button onclick="ShowBrowserDialog ('LanguageDialog');">Open the Language Preference dialog!</button>
    <button onclick="ShowBrowserDialog ('PrivacySettings');">Open the Privacy dialog!</button>
    <button onclick="ShowBrowserDialog ('ProgramAccessAndDefaults');">Open the Set Program Access and Defaults dialog!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content