How to pass parameters to a set timeoutfunction Ok here is the sample code setTimeout(function(){myFunction(parameter)},myTimeout); here is an alternate method setTimeout(myFunction,myTimeout,parameter);