我感谢javascript helpe。我是新来的。这个软件也很喜欢,并且很喜欢你家伙的反馈!
<html>
<head>
</head>
<body>
<form name="myForm">
Name: <input type="text" Id="fname" name="fname">
<br>
Second Name: <input type="text" Id="sname" name="fname">
<br>
<input type="submit" onClick="return alertdisplay()" value="Submit">
</form>
</body>
</html>
<script>
function alertdisplay(){
var fn = document.getElementById('fname').value;
alert(fn);
var sn = document.getElementById('sname').value;
alert('Fisr Name : ' + fn + ' Secodnd Name : ' + sn);
}
</script>