Share via


DOMObject Property

Applies to: SharePoint Foundation 2010

A pointer to the top-level Document Object Model (DOM) node of a Web Part or Web Part Page.

object.DOMProperty

Parameters

Parameter

Description

object  

A reference to a Part Object or WebPartPage Object object.

Remarks

This property provides a handle to the HTML DOM node for the Web Part Page or Web Part. If you access this property through the Part Object, you get the root element of the Web Part, which is a child of the Web Part Page root element.

Example 1: Microsoft Visual Basic Scripting Edition

Code

Set objDOMObject = WPSC.WebPartPage.DOMObject
Set objDOMObject = WPSC.WebPartPage.Parts.Item(0).DOMObject

Example 2: Microsoft JScript

Code

var objDOMObject = WPSC.WebPartPage.DOMObject;
var objDOMObject = WPSC.WebPartPage.Parts.Item(0).DOMObject;

Requirements

Applies to: Part Object, WebPartPage Object

See Also

Other Resources

Web Part Page Services Component (WPSC) Object Model