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>
Roedy Green - 22 Sep 2005 02:53 GMT
>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?
You are asking in the wrong newsgroup. See
http://mindprod.com/newsgroups.html
Java is not JavaScript.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.