Retrieves an autogenerated, unique identifier for the object.
HRESULT IHTMLUniqueName::get_uniqueID(BSTR *p);
- Pointer to a variable of type BSTR that receives BSTR that specifies the unique identifier.
Returns S_OK if successful, or an error value otherwise.
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.