Returns the unique identifier generated by the browser for the object.
The uniqueID property of the document works as an identifier generator in Internet Explorer. Each time when the value of this uniqueID property is retrieved, the browser generates a new unique identifier and returns it.
HTML elements also support the uniqueID property. The first time when the value of any of these properties is retrieved, the browser generates a new identifier for the element.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that represents the unique identifier.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the uniqueID property:
Did you find this example helpful?
User Contributed Comments