<html>
<head>
<script language="JavaScript">
<!--
function getName(){
alert("The name of this submit button is " + document.myForm.elements[1].name);
}
-->
</script>
</head>
<body>
<form name="myForm">
<input type=TEXT value="First Box" name="myText">
<input type=SUBMIT value="Submit" name="mySubmit" onClick='getName()'>
</form>
</body>
</html>
|