Skip to content

Instantly share code, notes, and snippets.

@liquidz
Created September 24, 2008 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liquidz/12489 to your computer and use it in GitHub Desktop.
Save liquidz/12489 to your computer and use it in GitHub Desktop.
js for multiple onload funcs
/* ------------------------------------
javascript function
for multiple onload functions
------------------------------------ */
function _onload(func){
var tmp = (window.onload == undefined) ? null : window.onload;
window.onload = function(){
if(tmp != null) tmp();
func();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment