<html>
<head>
<script language="JavaScript">
function openWin(){
var myInstance = document.myForm.myText;
console.log("The defaultValue is: " + myInstance.defaultValue);
console.log("The name is: " + myInstance.name + "<br>");
console.log("The type is: " + myInstance.type + "<br>");
console.log("The value is: " + myInstance.value + "<br>");
console.log(myInstance.form.myButton.value);
}
</script>
</head>
<body>
<form name="myForm">
<input type=TEXT value="hello world" name="myText">
<input type=BUTTON value="Click to Process" name="myButton" onClick="openWin()">
</form>
</body>
</html>