Closed
Bug 285439
Opened 20 years ago
Closed 20 years ago
no reload onresize
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mkomarek, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; cs-CZ; rv:1.7.6) Gecko/20050226 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; cs-CZ; rv:1.7.6) Gecko/20050226 Firefox/1.0.1
This code should onresize give an alert with current window width, works in all
5+ browsers instead of Firefox version 1.0.1
function reloudni(){location.reload()}
function test(){
if (window.innerHeight) {sirka=window.innerWidth}
else {sirka=document.body.clientWidth}
window.alert(sirka)
}
window.onload=test;
window.onresize=reloudni;
Reproducible: Always
Steps to Reproduce:
1.resize window
2.
3.
Actual Results:
There should be an alert, but there is no one
Expected Results:
Give an alert with current window width, onload should be the same as reload
Load is different that reload
Comment 1•20 years ago
|
||
This was changed in bug 258917 to fix broken sites which improperly caused reloads on resize. -> INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•