473,387 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Netscape Browser Resize problem

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>

Sep 22 '05 #1
4 1781
ir*****@yahoo.com wrote:
<SCRIPT language=javascript>
<script type="text/javascript">
// METHOD 1
parent.window.resizeTo(300,300);
Are you resizing this window or its parent? You seem not to be sure:
if( typeof( window.innerWidth ) == 'number' ) { //Non-IE
//METHOD 2
window.innerWidth= window.innerWidth - 1.
}
window.resizeBy( -1, 0 );
</SCRIPT>

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Sep 22 '05 #2
re;window or parent - it's one frame/window so window is fine.

I tried
<SCRIPT language="javascript">
window.resizeBy( -50, -50 );
</SCRIPT>

This worked fine for IE & Firefox

But it does not work in Netscape V8 - I have Netscape V8.0.3.3

Sep 22 '05 #3
ir*****@yahoo.com wrote:
<SCRIPT language="javascript">
window.resizeBy( -50, -50 );
</SCRIPT> This worked fine for IE & Firefox But it does not work in Netscape V8 - I have Netscape V8.0.3.3


Netscape 8 is, by default, configured to disallow resizing of the
browser window. Check the security settings, and consider your NS 8
users (poor souls).

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Sep 22 '05 #4
ir*****@yahoo.com wrote:
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?
Windows resizing by scripts can be disabled through user preferences
in more recent Gecko-based user agents, including Netscape 8.
I only need this for netscape and I need to resize the browser even by
1 pixel.
Don't even bother. Think about the possible consequences in different
environments.
<SCRIPT language=javascript>


Should be

<script type="text/javascript">
PointedEars
Oct 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeff T. | last post by:
I have an applet that sizes itself to the size of the browser frame that it is running in. On IE the applet resizes upon dragging the frame divider. I'm having a problem with getting this...
3
by: Bennie | last post by:
Hi, I can resize in IE whit window.resizeTo(widht,height) but it don't work for Netscape? Have try location.reload() in Netscape. But this don't work.... Any idear? Bennie,
1
by: Catherine Lynn Smith | last post by:
OK, I know this issue has been beat to death, but I have tested my script in Netscape 7.1 and it does seem to be getting the calculated values it needs to create placement coordinates, and every...
4
by: bdwise | last post by:
This shows the correct font in IE6 but not in Netscape 7.0, what should be fixed? #div1 { position: absolute; font-size: 12px; font-weight: 500; font-family : Verdana, Geneva, Tahoma, Arial...
13
by: AMC | last post by:
Hi, I have the below code in an asp page. When I run this page in IE or Opera it correctly displays the header info and does not redirect me to 'test.html'. However, when I run this in Netscape...
26
by: Roger Desparois | last post by:
Hi, I need help : I found the simplest and most precise way to open and close submenu layers. it works perfectly with IE, but for some odd reason NS won't recognize it. Can anyone tell me why...
5
by: moondaddy | last post by:
I have a <a> element in a datagrid which wraps some asp.net labels. this element also has an onclick event which does not fire in netscape 6 (and perhaps other browsers for all I know...). Below...
4
by: Nathan Sokalski | last post by:
I was testing out a page of mine that displays the information from Page.Request.Browser. It works exactly as I expected in Internet Explorer and Netscape 4.75 (I didn't expect much in Netscape...
9
by: balakrishnan.dinesh | last post by:
hi friends, Exactly what i want to know is, In my product we are using xmlhttp request to retrive some data from the server, And Im using IE browser, its working fine in IE. Now i want to work...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.