code:var objShell = new ActiveXObject("Shell.Application"); var objFolder = objShell.BrowseForFolder(0, "Select a folder:", 0, "C:\\");