Dreamweaver

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.
    If you use Internet Explorer on a Windows XP computer with Service Pack 2 installed, the browser may display a message that tells you it has restricted the file from showing active content. You can fix this problem by including Mark of the Web code in the file.
    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.