Skip to content

Instantly share code, notes, and snippets.

@jakemac53
Created October 27, 2014 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jakemac53/f0720f235830065d41a9 to your computer and use it in GitHub Desktop.
Save jakemac53/f0720f235830065d41a9 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>blur</title>
</head>
<body>
<input id="myInput" />
<script type="application/dart">
import "dart:async";
import "dart:html";
main() {
var input = querySelector('input');
input.focus();
input.on['blur'].listen((_) {
input.remove();
});
input.remove();
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment