newDocument

This function creates a new web page document and gives the new document focus, just as if the user had created a new document from the File menu.

Syntax

function xweb.application.newDocument(
type : String
) : document

Parameters

type   Specifies the <doctype> from the list available from the Authoring tab of the Page Editor Options dialog box.

If no type is specified, the <doctype> specified in the Authoring tab of the Page Editor Options dialog box is used.

Returns

This function returns the xweb.document object for the new document, or null if a new document was not successfully created.

See Also

Concepts

document
application
application Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.