'bgProperties' Example : Background « Style Layout « JavaScript DHTML






'bgProperties' Example

 
    
<html>
<head>
<script>
    function function1() {
        document.all.myBody.bgProperties = "fixed";
    }
</script>
</head>
<body background="http://www.java2s.com/style/logo.png" 
      onclick="function1();" 
      id="myBody">
</body>
</html>

    
      
        
  








Related examples in the same category

1.div.style.backgroundColor="#00f";
2.Get and set node background color