<html>
<body>
<script language="JavaScript"> function function1() {
var m = document.getElementById("myB").defaultValue;
alert("The value of this element is: "+'"'+m+'"');
}
</script>
<input id="myB" type="button" value='Click here' onclick="function1();">
</body>
</html>