openDocument

This function opens a document for editing in a new tab in Microsoft Expression Web and gives the specified document focus, just as if the user had opened the file from the File menu.

Note

This function will open only web page file types, such as file.html or file.aspx.

Syntax

function xweb.application.openDocument(
fileLocation : String
) : Object

Parameters

fileLocation   The location of the file, which must be within the site.

Returns

This function returns the xweb.document object for the page opened, or null if it is unsuccessful.

See Also

Concepts

application
application Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.