<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<script>
function displayResult(){
var x=document.getElementById("reset1").type;
alert(x);
}
</script>
</head>
<body>
<form>
Email: <input type="text" id="email">
<input type="reset" id="reset1">
</form>
<button type="button" onclick="displayResult()">显示 input 类型</button>
</body>
</html>