Fixing Netscape 4.x Window Resize Problem
Netscape 4.x browsers have a big problem with pages that contain div or span tags when the window is resized. Code gets all jumbled and you're lucky if the only result is that nothing will show up on your page. So, we need a fix. You can add code to your global browser sniffing js file that will reload the page if it is resized:
window.onload=resizefix
function resizefix(){
if(document.layers){
winW = window.innerWidth
winH = window.innerHeight
window.onresize = restore
}
}
function restore(){
if(winW != window.innerWidth || winH != window.innerHeight){
location.reload(true)
}
}
In certain situations I've noticed NN 4.x doesn't always respond to the fix as it should unless the resizefix() function is also called in the onResize event handler of the body tag. In those cases, you should also add the following code to the body tag of any page containing div or span tags:
<body onResize="resizefix()">
View the Source