Closed Bug 285439 Opened 20 years ago Closed 20 years ago

no reload onresize

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows XP
defect
Not set
normal

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
Severity: major → normal
Version: unspecified → 1.0 Branch
This was changed in bug 258917 to fix broken sites which improperly caused
reloads on resize. -> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Depends on: 258917
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.