function OnResizeReloadPage(init) { // By Jeroen Valenkamp Februari 2001 // Place BELOW BODYTAG! if (init==true) { if (document.layers) { //Read Pagewidth and height when initialized NS4+ PageWidth=window.innerWidth; PageHeight=window.innerHeight; onresize=OnResizeReloadPage; } if (document.all) { //Read Pagewidth and height when initialized IE4+ PageWidth=document.body.offsetWidth; PageHeight=document.body.offsetHeight; onresize=OnResizeReloadPage; } } if (document.layers) { //If width or height value doesn't match with initial value reload page NS4+ if (window.innerWidth!=PageWidth || window.innerHeight!=PageHeight) { location.reload(); } } if (document.all) { //If width or height value doesn't match with initial value reload page IE4+ if (document.body.offsetWidth!=PageWidth || document.body.offsetHeight!=PageHeight) { location.reload(); } } } OnResizeReloadPage(true);