florida
12-16-2003, 06:50 AM
I have a resize function that works on body load in my Netscape 4.77 with no problems. But I cant get it to work in my IE 5.5 Browser. Please advise.
NS4 = document.layers;
if (NS4)
{
ourWidth = innerWidth;
ourHeight = innerHeight;
}
function the_Resize()
{
if (ourWidth != innerWidth || innerHeight != ourHeight)
{
location.reload();
}
}
if (NS4) onresize = the_Resize;
//in body onload
<body onLoad="the_Resize()">
My attempt trying to get it to work in IE:
NS4 = document.layers;
IE = document.all;
if ((NS4) || (IE))
{
ourWidth = innerWidth;
ourHeight = innerHeight;
}
function the_Resize()
{
if (ourWidth != innerWidth || innerHeight != ourHeight)
{
location.reload();
}
}
if ((NS4) || (IE))
onresize = the_Resize;
//in body onload
<body onLoad="the_Resize()">
It didnt work in IE. Please advise how I can get this to work?
NS4 = document.layers;
if (NS4)
{
ourWidth = innerWidth;
ourHeight = innerHeight;
}
function the_Resize()
{
if (ourWidth != innerWidth || innerHeight != ourHeight)
{
location.reload();
}
}
if (NS4) onresize = the_Resize;
//in body onload
<body onLoad="the_Resize()">
My attempt trying to get it to work in IE:
NS4 = document.layers;
IE = document.all;
if ((NS4) || (IE))
{
ourWidth = innerWidth;
ourHeight = innerHeight;
}
function the_Resize()
{
if (ourWidth != innerWidth || innerHeight != ourHeight)
{
location.reload();
}
}
if ((NS4) || (IE))
onresize = the_Resize;
//in body onload
<body onLoad="the_Resize()">
It didnt work in IE. Please advise how I can get this to work?