Sets the background color of the page to black : document « jQuery « JavaScript DHTML






Sets the background color of the page to black

    

<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <style type="text/css">
        .changeP { font-weight: bold; color:red;}
    </style>

    <script type="text/javascript">
   $(document).ready(function(){
     $(document.body).css( "background", "black" );



   });

    </script>
  </head>
  <body>

   <form>
      <input type="radio" value="Option">
   </form>

  </body>
</html>

   
    
    
    
  








Related examples in the same category

1.Get document width
2.Document height
3.Get elements in body tags
4.Reference document.body