Skip to content

Instantly share code, notes, and snippets.

@danielstocks
Created September 16, 2010 17:13
Show Gist options
  • Save danielstocks/582777 to your computer and use it in GitHub Desktop.
Save danielstocks/582777 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>IE input value</title>
</head>
<body>
<form action="">
<input id="test" type="text" name="username">
</form>
<script>
var input = document.getElementById("test");
alert(input.value);
setTimeout(function() {
alert(input.value);
}, 2000);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment