DOM Node JavaScript Tutorial

Firefox does not support the innerText property.

    
        InnerText Example
        
            function useInnerText() {
                var oDiv = document.getElementById("div1");
                oDiv.innerText = oDiv.innerText;
            }
        
 
    
    
        Hello world