User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20021225 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20021225 When loading an HTML file from the local drive, the onLoad event does not seem to fire. We have a Visual Basic program which writes the HTML file (with a form) to the local hard disk and then loads the page into default browser to send the form data - the onLoad event on the page which our webserver produces works, so it seems to only be on local pages. IE works fine, NS4 does not either though. Reproducible: Always Steps to Reproduce: (With Windows) 1. Save any HTML page with an onLoad event in the body tag. 2. Double-click the file to open it into default browser (should be Mozilla, if not change the default first!) Actual Results: onLoad event does not fire (in my example, does not submit the form) Expected Results: onLoad should fire (in my example, form should be submitted)
I'm sorry, but I don't see any occurence of "onLoad" inside the page you attached. Are you sure you attached the right example? Of course it's no wonder nothing fires on page load, as there's simply nothing to fire there.
Created attachment 110403 [details] CORRECTED sample file.... (Oops!)
Attachment #110341 - Attachment is obsolete: true
Reporter: Can you reproduce this bug with a recent build of Mozilla (for example, 1.4rc3)? If so, then please comment again with details. If not, then please resolve this bug as WORKSFORME. Thanks.
Using the sample file, it works in IE, but using Wesha's small change it does seem to work fine.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → WORKSFORME
Who said IE does everything _correctly_... Yes it works in IE like that, but it's just another Microsoft's tiny little "extension"... v.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.