अवलोकन
document.documentElement प्रॉपर्टी दस्तावेज़ के रूट एलिमेंट (आमतौर पर <html>) को लौटाती है।
उदाहरण
<!DOCTYPE html> <html> <head> <title>JavaScript Example</title> </head> <body> <p>Demo Text</p> <script> document.body.style.backgroundColor = "gray"; var a = document.documentElement.nodeName; document.write("Node Name: "+a); </script> </body> </html>