Button's value : Button : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Button »

 

Button's value



    
<html>
<body>
<form id="myForm">
    <table>
        <tr>
            <td>
                <input id="myButton" 
                       type="button" 
                       onClick="alert('This element value is:n'+this.value);">
            </td>
            <td>
                <input id="myReset" 
                       type="reset" 
                       onClick="alert('This element value is:n'+this.value);">
            </td>
            <td>
                <input id="mySubmit" 
                       type="submit" 
                       onClick="alert('This element value is:n'+this.value);">
            </td>
        </tr>
    </table>
</form>
<script language="JavaScript">
    document.getElementById("myButton").value = 'input type = "button"';
    document.getElementById("myReset").value='input type = "reset"';
    document.getElementById("mySubmit").value='input type = "submit"';
</script>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» Button