![]() |
VOOZH | about |
The customElements property returns a reference to a CustomElementRegistry object, which can be further used to register new custom elements and hence get information about previously registered custom elements.
Syntax:
var obj = window.customElements;
Return Value:
Example: In this example, we will get information about custom elements and will create a custom element using define() method.
Output:
Before Button Click:
After Button Click:
customElements object:
Supported Browsers: