Element.uniqueID (Property)

An automatically generated unique ID value for an object.

Availability:

JScript - 5.0
Internet Explorer - 5.0
Property/method value type:String primitive
JavaScript syntax:IEmyElement.uniqueID

You may go to great lengths to map ID values to objects in your documents and still have ID conflicts. This property generates a guaranteed unique ID value which will be static for that object as long as it exists.

However, reloading a page and requesting a unique ID again from objects within it will not yield the same values.

You cannot assign a value to this property.

Property attributes:

ReadOnly.