# BrowseForFolder Method The BrowseForFolder method displays a 'browse for folder' dialog. Syntax
    [filename=] SiteCafe.UserInterface.CommonDialogs.
                BrowseForFolder(parentwin, rfolder, title, flags)
Parameters
parentwin | Handle to the parent window.
rfolder | String that specifies the root folder.
title | String that specifies the title.
flags | Long value that specifies the flags (BROWSEINFO).
Return Value Returns a String that contains the absolute path of the saved file. Remarks The default flags (if flags is null) are: BIF_EDITBOX, BIF_NEWDIALOGSTYLE, BIF_RETURNFSANCESTORS, BIF_RETURNONLYFSDIRS, BIF_USENEWUI Examples The following example displays a 'browse for folder' dialog and shows the selected filename in an alert window.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    dialogObj = SiteCafe.UserInterface.CommonDialogs;
    alert(dialogObj.BrowseForFolder(0, "c:/", "title", 0));
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top