When creating my news ticker plugin, I came across a slight complication when using setTimeout() to calling a function which needed parameters passed to it. Not having had much call to use setTimeout in the past, I simply put:
setTimeout(myFunction(parameter)...
Head of Digital Development at Heehaw, a digital agency in Edinburgh (formerly Senior Project Manager at Torchbox). I’ve a particular interest in accessibility and web standards.
Got a question? Send me a message.