Hacker News new | ask | show | jobs
by chmike 4770 days ago
Indeed, according to http://www.w3schools.com/js/js_timing.asp, the first parameter of setTimeout should be a function. I don't know if "_gaq.push(['_trackEvent', '15_seconds', 'read'])" will be treated as a function.
2 comments

Let's not link to w3schools... (http://www.w3fools.com/)

MDN is nice: https://developer.mozilla.org/en-US/docs/Web/API/window.setT...

And if you are using DuckDuckGo... "!js setTimeout" will redirect you to MDN.

Thank you very much for the link. I'll use this site from now on. It's sad MDN url is not returned first with a google query.
it would be passed into eval()