Comment

Jason Kummerl

Yes because if you have not defined window.onload before you grab is using 'var prev_onload = window.onload;' prev_onload will be null instead of a function.

Parent comment

Peter Bengtsson

Are you sure, isn't window.onload always an object?