javascript - Where is document.documentElement used? -


I'm learning JavaScript for awhile Recently I got to know about document.documentElement This refers to html native tags in browser / HTML documents.

Is there any other use of this?

Do something please share the real world usage of document.documentElement.

Thank you in advance.

This is just a shortcut property that is in the context of the document root element node; HTML will have this html element.

This property is read-only.

It has no other use;)



Comments

Popular posts from this blog

sql - Return Function using Cursor -

sql server - How to use pivot in this table -

javascript - Is there any way to add a new parameter to a function programmatically? -