Document JavaScript

var name = document.getElementById('name').value ;
alert('hello, '+name);
Inquisitive Iguana