Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

body

The body property of the Document object returns a reference for the body element of the document.

Syntaxdocument.body
<body> </body> <script> document.body.bgColor = "skyblue"; </script>

JavaScript

Properties

bodycalleeclosedcookiedocumentdropEffecteffectAllowedfilesframeElementframeshistoryInfinityinnerHeightinnerHTMLinnerWidthlengthlocationlocationbarnameNaNnavigatornullopenerouterHeightparentprototypescreenstatetextContentundefined