473,394 Members | 1,693 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,394 software developers and data experts.

self.resizeTo

Hi,
I'm trying to make the browser window resize itself when a new page
loads in the current window.It works for FireFox but not in IE6.
I've tried putting this under head, body and at the very top of the
html script of the new page being loaded,

<script Language="javascript">
self.resizeTo(800,800);
</script>

and I've tried putting javascript in the Flash links, using the same
window name as the current window.

getURL("javascript:var NewWindow=window.open('test1.html', 'newWin',
'width=800, height=800, left=0, top=0,
resizable=Yes,');NewWindow.focus();")


Can anyone help?

Aug 3 '05 #1
2 11652
alu

<wm*****@kol.co.nz> wrote
Hi,
I'm trying to make the browser window resize itself when a new page
loads in the current window.It works for FireFox but not in IE6.
I've tried putting this under head, body and at the very top of the
html script of the new page being loaded,

<script Language="javascript">
self.resizeTo(800,800);
</script>

Works fine in IE6 for me.
You could try <body onload="self.resizeTo(800,800);">
and remove the Flash links.

and I've tried putting javascript in the Flash links, using the same
window name as the current window.

getURL("javascript:var NewWindow=window.open('test1.html', 'newWin',
'width=800, height=800, left=0, top=0,
resizable=Yes,');NewWindow.focus();")


Aug 3 '05 #2
Yeah thanks alu, that works fine, and so did my code - just not
offline(?).
But it still doesn't work when you return to the first page - when the
first window is reloaded.
I'm thinking it might be to do with cacheing and bReplace could be used
in the flash links. But I'm unsure of the correct syntax.

Anyone?

Aug 4 '05 #3

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

Similar topics

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: Jules Flynn | last post by:
what seems quite a simple problem but I'm not sure how to get round it: my web site relies on the opening of "pop-up" windows at specific sizes (don't worry - the windows are requested by the...
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
8
by: Frances Del Rio | last post by:
I'm getting Getting "Access is Denied" on resizeTo and moveTo methods in IE (IE 6.0..) I saw two posts about this from 7/6 & 7/7.. I suspect, like previous poster said, that this has to do w/MS...
6
by: rob | last post by:
Hi I'm trying to create a "roll-up" effect when a window loses focus and then "roll-down" when it regains focus. This statement works properly with every browser I can get my hands on EXCEPT...
1
by: Captain Nemo | last post by:
Hi I've written some javascript code for a pop-up window which presents a series of images. These images are of various dimensions, so that when each picture is loaded, the window is resized...
1
chunk1978
by: chunk1978 | last post by:
hi there... i'd like to link to know if there's anyway to load a page without location-bar, bookmark-bar, etc. with the window.resizeTO function... i have read that this function only accepts...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.