Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2005

Tip: Looking for answers? Try searching our database.

Netscape Browser Resize problem

Thread view: 
ire2874@yahoo.com - 22 Sep 2005 02:03 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?

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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.