<script>
function asd(){
var msg = document.getElementById('email');
alert(msg);
}
</script>
<form>
<input type='text' id="email"/>
<input type='button' onclick='asd()' value='<' />
</form>
onclike return that message
Object HTML Input Element