This topic has not yet been rated - Rate this topic

compareDocumentPosition method

Compares the position of two nodes in a document.

Document Object Model (DOM) Level 3 Core Specification, Section 1.2Internet Explorer 9

Syntax


USHORT retVal = object.compareDocumentPosition(otherNode);

Parameters

otherNode [in]

Type: IHTMLDOMNode

The node to be compared to the reference node, which is the node executing the method.

Standards information

Remarks

For information about the factors that affect the position of nodes within the DOM, see the Document Object Model (DOM) Level 3 Core Specification from the World Wide Web Consortium (W3C).

Windows Internet Explorer 9. The IHTMLDOMNode3::compareDocumentPosition method is supported only when webpages are displayed in IE9 Standards mode.

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.