innerHTML of body element : innerHTML : DOM Node JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » DOM Node » innerHTML »

 

innerHTML of body element

















<html>
    <head>
        <title></title>
        <script type="text/javascript">
            function useRanges() {
                alert(document.body.innerHTML);
                
            }
        </script>
    </head>
    <body><p id="p1"><b>Hello</b> World</p>
        <input type="button" value="Use Ranges" onclick="useRanges()" />      
     
  
    </body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo DOM Node
» innerHTML