I want to get the html
element in Javascript. I can now use document.body.parentNode
or document.getElementsByTagName("html")
. But I think there should be a simple, "right" way to do it.
So, what's the right way to get the html
element in Javascript?
I tried to use search engines, but I don't know how to tell them the html
tag is different from any other HTML tag, so it yielded no result I wanted.