Answers for "html body in javascript"

0

javascript body element

<script>
window.onload = function get_body() {

  body = document.getElementsByTagName('body')[0];
}

</script>
Posted by: Guest on August-03-2021
0

represent body in javascript

// for defining body getElementyId or any other syntax won't be used and for that we have to write 
document.body.style.backgroundColor = "yellow";
Posted by: Guest on March-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language