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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -