'outerText' Example : outerText « Node Operation « JavaScript DHTML






'outerText' Example

    
<html>
<body>
<p id="par">Text <b>Text </b>Text  <u>Text </u>.</p>
<button id="myButton" onclick="function1();">Make Text Above Plain</button>
<script language="javascript">
    function function1(){
        document.all.par.outerText = "Text Text Text."
        myButton.disabled = true;
    }
</script> 
</body>
</html>

    
      
      








Related examples in the same category