Preview in a browser, Set browser preview preferences – Adobe Dreamweaver CC 2015 User Manual
Page 362
355
Previewing
Last updated 6/3/2015
Preview in a browser
You can preview a page in a browser at any time; you don’t have to upload it to a web server first. When you preview a
page, all browser-related functions should work, including JavaScript behaviors, document-relative and absolute links,
ActiveX® controls, and Netscape Navigator plug-ins, provided that you installed the required plug-ins or ActiveX
controls in your browsers.
Before previewing a document, save the document; otherwise, the browser does not display your most recent changes.
1
Do one of the following to preview the page:
• Select File > Preview In Browser, and then select one of the listed browsers.
Note: If no browsers are listed, select Edit > Preferences or Dreamweaver > Preferences (Macintosh), and then select
the Preview In Browser category on the left to select a browser.
• Press F12 (Windows) or Option+F12 (Macintosh) to display the current document in the primary browser.
• Press Control+F12 (Windows) or Command+F12 (Macintosh) to display the current document in the secondary
browser.
2
Click links and test content in your page.
Note: Content linked with a site root-relative path does not appear when you preview documents in a local browser
unless you specify a testing server, or select the Preview Using Temporary File option in Edit > Preferences >
Preview In Browser. This is because browsers don’t recognize site roots—servers do.
To preview content linked with root-relative paths, put the file on a remote server, and then select File > Preview In
Browser to view it.
3
Close the page in the browser when you finish testing.
Set browser preview preferences
You can set preferences for the browser to use when previewing a site and define default primary and secondary
browsers.
1
Select File > Preview In Browser > Edit Browser List.
2
To add a browser to the list, click the Plus (+) button, complete the Add Browser dialog box, and then click OK.
3
To delete a browser from the list, select the browser, and then click the Minus (-) button.
4
To change settings for a selected browser, click the Edit button, make changes in the Edit Browser dialog box, and
then click OK.
5
Select the Primary Browser or the Secondary Browser option to specify whether the selected browser is the primary
or secondary browser.
F12 (Windows) or Option+F12 (Macintosh) opens the primary browser; Control+F12 (Windows) or
Command+F12 (Macintosh) opens the secondary browser.
6
Select Preview Using Temporary File to create a temporary copy for previewing and server debugging. (Deselect this
option if you want to update the document directly.)
More Help topics