Can any body throw me some arguments for using inline functions against passing predefined function name to some handler.
I.e. which is better:
IMO, declaring a function will be useful only if you intend to re-use it later, in some other way.
I personally use function expressions (first way) for setTimeout handlers.
However you might want to know the differences between function declarations and function expressions, I recommend you the following article: