Bug 16367

Summary: onload not called on window load
Product: WebKit Reporter: Adam Barth <abarth>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows Vista   
URL: http://crypto.stanford.edu/~abarth/research/webkit/onload/

Adam Barth
Reported 2007-12-09 10:07:58 PST
If a page define an onload function: window.onload = function () { alert('onload called'); } Is onload called when the page loads? Firefox 2: Yes Internet Explorer 7: Yes Opera 9.24: Yes Safari 3: Yes If a page defines the same function using a different syntax: function onload() { alert('onload called'); } Is onload called when the page loads? Firefox 2: Yes Internet Explorer 7: No Opera 9.24: No Safari 3: No Seems like onload should be called in both cases.
Attachments
Note You need to log in before you can comment on or make changes to this bug.