DOM Node JavaScript Tutorial

This example only works on Internet Explorer.


    
        IE Range Example
        
            function useRanges() {
                var oRange = document.body.createTextRange();
                var oP1 = document.getElementById("p1");
                oRange.moveToElementText(oP1);
                oRange.pasteHTML("

Howdy World

");
                
            }
        
    
    Hello World