setTimeout ignores timeout? (Fires immediately) [duplicate]

You need to get rid of the parentheses on doFade().

The parentheses invoke the function instantly.

Just use this in stead: doFade

Leave a Comment