Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below


Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest! Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorxyvermax
    • CommentTimeJul 2nd 2010
     permalink
    A safe method for adding event handlers to onload without destroying any existing handlers.  
    Any help will be appreciated.:face-angel:
  1. Other Topics You Might Like
    click send a private message anybody can see the wall
    Anybody know the WiFi password?
    Jeremy knows nothing
    Who knows what Bait & Switch Items Fry's will have this Black Friday 2008?
    •  
      CommentAuthorasdf
    • CommentTimeJul 3rd 2010 edited
     permalink
    var oldhandler = window.onload;  
    window.onload = function() {  
    // new code here  
    oldhandler(); // run oldhandler noob  
    }
    •  
      CommentAuthorsomeone
    • CommentTimeJul 3rd 2010
     permalink
    xyvermax: A safe method for adding event handlers to onload without destroying any existing handlers.  
    Any help will be appreciated.:face-angel:
     
     
    Just carry a barrage of bigger guns... that should keep both groups of handlers at bay...Hiya kids. Here is an important message from your Uncle Bill. Don't buy drugs. Become a pop star, and they give you them for free!