We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

vanne on 01/21/07


Tagged

javascript prototype


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

fantomex
vali29
hans


Function loading in prototype


Published in: JavaScript 


This is a prototype based method for loading functions, this is an alternative to using window.onload = function();

  1. function app_events(){
  2. //add in your functions here;
  3. }
  4.  
  5. Event.observe(window, 'load', app_events);

Report this snippet 

You need to login to post a comment.