I
ire2874
I'm trying (unsuccessfuly) to resize a browser window in Netscape (v8)
using javascript - There are 2 methods I am trying to use below but
neither works. Any tips?
I only need this for netscape and I need to resize the browser even by
1 pixel.
<SCRIPT language=javascript>
var frameWidth = 0;
var frameHeight = 0;
if (self.innerWidth)
{
frameWidth = self.innerWidth;
frameHeight = self.innerHeight;
}
else if (document.documentElement &&
document.documentElement.clientWidth)
{
frameWidth = document.documentElement.clientWidth;
frameHeight = document.documentElement.clientHeight;
}
else if (document.body)
{
frameWidth = document.body.clientWidth;
frameHeight = document.body.clientHeight;
}
// METHOD 1
parent.window.resizeTo(300,300);
if( typeof( window.innerWidth ) == 'number' ) { //Non-IE
//METHOD 2
window.innerWidth= window.innerWidth - 1.
}
</SCRIPT>
using javascript - There are 2 methods I am trying to use below but
neither works. Any tips?
I only need this for netscape and I need to resize the browser even by
1 pixel.
<SCRIPT language=javascript>
var frameWidth = 0;
var frameHeight = 0;
if (self.innerWidth)
{
frameWidth = self.innerWidth;
frameHeight = self.innerHeight;
}
else if (document.documentElement &&
document.documentElement.clientWidth)
{
frameWidth = document.documentElement.clientWidth;
frameHeight = document.documentElement.clientHeight;
}
else if (document.body)
{
frameWidth = document.body.clientWidth;
frameHeight = document.body.clientHeight;
}
// METHOD 1
parent.window.resizeTo(300,300);
if( typeof( window.innerWidth ) == 'number' ) { //Non-IE
//METHOD 2
window.innerWidth= window.innerWidth - 1.
}
</SCRIPT>