<head>
</head>
<body>
<input type="text" name="aaa" id="abc" value="BBB"><br>
</body>
<script language="javascript">
var a = document.getElementById('abc');
document.write(a.tagName+"<br>");
document.write(a.name+" "+a.value+" "+a.type);
</script>
</head>
<body>
<input type="text" name="aaa" id="abc" value="BBB"><br>
</body>
<script language="javascript">
var a = document.getElementById('abc');
document.write(a.tagName+"<br>");
document.write(a.name+" "+a.value+" "+a.type);
</script>