Export (0) Print
Expand All uniqueID

uniqueID of type DOMString

Retrieves an automatically generated, unique identifier for the object.

When you apply this property to the document object, the browser automatically generates a new ID that you can assign to an element's 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 page is loaded.

This is a DOM attribute only.

The uniqueID attribute extends the following interfaces:

© 2015 Microsoft