Skip to content

Instantly share code, notes, and snippets.

@easierbycode
Forked from mxriverlynn/timeout.js
Created December 22, 2011 01:24
Show Gist options
  • Save easierbycode/1508486 to your computer and use it in GitHub Desktop.
Save easierbycode/1508486 to your computer and use it in GitHub Desktop.
Timeout
Foo = {};
Foo.bar = function(){
alert("test");
}
setTimeout(Foo.bar, 1000); // 1 second later, alert's "test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment