In IE7, the following code will not do if the html page has little content
window.addEvent("domready", function() {
$(window).addEvents( {
"load" : loadListener
});
function loadListener() {
window.alert("Window has loaded!");
}
});
And these code shoud be changed like this:
window.addEvents( {
"load" : function() {
window.alert("Window has loaded!");
},
"domready" : function() {
/* do something */
}
});
Mootools add window onload event
最新推荐文章于 2024-05-29 16:21:30 发布