Skip to content

Instantly share code, notes, and snippets.

@ageldama
Created February 19, 2012 07:01
Show Gist options
  • Select an option

  • Save ageldama/1862311 to your computer and use it in GitHub Desktop.

Select an option

Save ageldama/1862311 to your computer and use it in GitHub Desktop.
<script type='text/javascript'>
function foo() {
var name = document.all['name'].value;
alert("HI! " + name);
}
</script>
<input type='text' id='name' name='name'>
<input type='button' onclick='javascript:foo()'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment