![]() |
|
|
+ Search |
![]()
|
Mar 3rd, 2006 13:42
erik peterson, Techek,
Use an enclosure. Basically, you will pass to setTimeout a function
which calls the function you need with the arguments you want.
passedObject = 'whatever variable I need to pass';
setTimeout(function() { myFunction(passedObject); }, 1000);
function myFunction(recievedObject) {
//Do whatever
}