<html>
<body>
<form>
<input type="text" id="text1" />
</form>
<script type="text/javascript">
x=document.getElementById("text1");
document.write("Form element type is: ");
document.write(x.type);
</script>
</body>
</html>