Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

uniqueID property

Retrieves an autogenerated, unique identifier for the object.

Syntax

HRESULT value = object.get_uniqueID(* p);

Property values

Type: BSTR

BSTR that specifies the unique identifier.

Remarks

When you apply this property to the document object, the client automatically generates a new ID that you can assign to an element's IHTMLElement::id property.

A new ID is generated and assigned to the element the first time the property is retrieved. Every subsequent access to the property on the same element returns the same ID.

Note  The unique ID generated is not guaranteed to be the same every time the document is loaded.

See also

Conceptual
Introduction to DHTML Behaviors
Using HTML Components to Implement DHTML Behaviors in Script

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.