Form Control JavaScript DHTML




    
        
            
            
            
        
    

                                       type="button" 
                       onClick="alert('This element value is:\n'+this.value);">
            

                                       type="reset" 
                       onClick="alert('This element value is:\n'+this.value);">
            

                                       type="submit" 
                       onClick="alert('This element value is:\n'+this.value);">
            



    document.getElementById("myButton").value = 'input type = "button"';
    document.getElementById("myReset").value='input type = "reset"';
    document.getElementById("mySubmit").value='input type = "submit"';