Javascript Methods JavaScript Reference




function function1() {
    document.all.myP.normalize();
    alert("The second paragraph has been normalized"); 


First paragraph.


Second paragraph.


       type="button" 
       value="Normalize second paragraph" 
       onclick="function1();">