The IHTMLUniqueName interface provides the ability to programmatically access the unique name and ID of an object.
IHTMLUniqueName Methods
get_uniqueID Retrieves the element's unique identifier. get_UniqueNumber Retrieves the element's unique number.
Interface Information
Implementation System (Mshtml.dll) Inherits from IDispatch Header and IDL files Mshtml.h, Mshtml.idl Minimum availability Internet Explorer 5 Minimum operating systems Windows 95, Windows NT 4.0