|
December 28, 1999 The onresize-reload Trap Tips: December 1999
Yehuda Shiran, Ph.D.
|
|
In Navigator 4.0x, absolutely positioned elements get messed up when the browser window is resized. Therefore, we'll instruct the browser to reload the page if the user happens to resize the window. In theory, the code would be:
The preceding code segment worked fine -- until Netscape introduced Navigator 4.04. On Navigator 4.04, a resize event occurs when the page loads. Our
Learn more about how we used this code in Column 16, Dynamic Tooltips.
People who read this tip also read these tips: Look for similar tips by subject: |