It isn't that difficult. Handle the client-side click event for the button, retrieve the value of the textbox, output it. What part of this process are you having difficulty with? What have you tried so far?
function OnSubmit()
{
var txt = document.getElementById("textbox");
alert(txt.innerText);
}