Closed
Bug 316850
Opened 19 years ago
Closed 19 years ago
OnLoad event on body is not fired when pages is loaded from history
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 312816
People
(Reporter: adalbert.homa+mozilla, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5
The behaviour in Firefox 1.5RC2 changed compared to IE and 1.0.x Firefox. The previous version run fired the onLoad() event when the page was reloaded from the history.
This is a critical because this changes behaviour used in commercial websites (a tipical example is to prevent multiple clicks).
Reproducible: Always
Steps to Reproduce:
1. Save the attached file to a local file (or create an html page with onLoad() handler).
2. Load the page into Firefox
3. Navigate to another page
4. Go back in history
Actual Results:
The onLoad() event is not fired when the page is loaded from the history.
Expected Results:
onLoad() event should be triggered whenever the page is loaded or reloaded even from the cache.
Here is the content of the HTML file used for testing
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Checking onLoad()</title>
<link rel="stylesheet" href="styles/style.css" type="text/css"/>
<script type="text/Javascript">
<!-- <![CDATA[
function initPage() {
alert('Onload executed');
}
//]]>-->
</script>
</head>
<body onload="initPage()">
<hr/>Instructions
<hr/> Testing onLoad().
<br/> Click on the link below<br/> After the other page loaded press the back
button.<br/> If the alert() shows, onLoad had been executed again.<br/> Otherwise
it was not.<br/> Link for <a href="http://www.mozilla.org/developer/">Mozilla</a>
</body>
</html>
Comment 1•19 years ago
|
||
*** This bug has been marked as a duplicate of 312816 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•