i have crated a text-box, which has an id, i want to know, is it possible to find out control name using getElementbyId.
<!doctype html>
<html lang="en">
<body>
<script type="text/javascript" language="javascript">
var a = document.getElementById('first').type;
document.write(a);
</script>
<input type="text" id="first"></input>
</body>
</html>