Netscape Browser Resize problem

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top