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.