User:Gerbrant/alternativeOnloadHook.js
From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Firefox/Mozilla/Safari: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Internet Explorer: press Ctrl-F5, Opera/Konqueror: press F5.
module("Gerbrant.alternativeOnloadHook", new function() { this.standard = addOnloadHook; this.alternative = function(fn) { hookEvent("load", fn); }; addOnloadHook = this.alternative; });