Button 'default Value' Example : Button : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Button »

 

Button 'default Value' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var m = document.getElementById("myButton").defaultValue;
    alert("The value of this element is: "+'"'+m+'"')

</script>
<input id="myButton" type="button" value='Click here' onclick="function1();">
</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