<html>
<script language="JavaScript">
<!--
function displayMessage()
{
var alertString = String("You pressed the button named ");
alertString += document.myForm.myButton.name;
alert(alertString);
}
-->
</script>
<form name="myForm">
<input type="button"
value="Big Button"
name="myButton"
onClick="displayMessage()">
</form>
</html>
|