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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -