beautypg.com

Dreamweaver.getbrowserlist(), Dreamweaver.getextensioneditorlist() – Adobe Dreamweaver API Reference CS5 User Manual

Page 112

background image

107

DREAMWEAVER API REFERENCE

Application

Last updated 8/27/2013

function goToadobe(){

var prevBrowsers = dw.getBrowserList();
var theBrowser = "";
for (var i=1; i < prevBrowsers.length; i+2){

if (prevBrowsers[i].indexOf('Iexplore.exe') != -1){

theBrowser = prevBrowsers[i];
break;

}

}
dw.browseDocument('http://www.adobe.com/',theBrowser);

}

For more information on the

dreamweaver.getBrowserList()

function, see

dreamweaver.getBrowserList()

” on

page 107.

dreamweaver.getBrowserList()

Availability
Dreamweaver 3.

Description
Gets a list of all the browsers in the File > Preview in Browser submenu.

Arguments
None.

Returns
An array that contains a pair of strings for each browser in the list. The first string in each pair is the name of the
browser, and the second string is its location on the computer of the user, which is expressed as a file:// URL. If no
browsers appear in the submenu, the function returns nothing.

dreamweaver.getExtensionEditorList()

Availability
Dreamweaver 3

Description
Gets a list of editors for the specified file from the External Editors preferences.

Arguments
fileURL

The fileURL argument can be a complete file:// URL, a filename, or a file extension (including the period).

Returns
An array that contains a pair of strings for each editor in the list. The first string in each pair is the name of the editor,
and the second string is its location on the computer of the user, which is expressed as a file:// URL. If no editors appear
in Preferences, the function returns an array that contains one empty string.