473,408 Members | 2,839 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,408 software developers and data experts.

Resizing a Web Page?

The following will resize a web page on opening
when put in the head section of the web page.

<script language="JavaScript">
<!--
window.moveTo (150, 75);
window.resizeTo (700, 600);
//-->
</script>

If I want to remove the scrollbars, status bar, tool bar,
menu bar, etc., how do I include that?

Thanks.
Jul 23 '05 #1
5 1539
You cannot do this on a page which is already open (and would be best
advised that it would be pretty annoying if you were able to....)

Option for removing chrome is only available if you're openeing a new
window using "window.open()"

Tim.
"bobj" <bo**@frontiernet.net> wrote in message
news:UJ***************@news01.roc.ny...
The following will resize a web page on opening
when put in the head section of the web page.

<script language="JavaScript">
<!--
window.moveTo (150, 75);
window.resizeTo (700, 600);
//-->
</script>

If I want to remove the scrollbars, status bar, tool bar,
menu bar, etc., how do I include that?

Thanks.

Jul 23 '05 #2
Very well then. I tried this:

<script language="javascript">
<!--
window.open('closings2.htm','', 'height=500,width=700, screenX=100,screenY=100,top=75,left=150,
location=0,menubar=0,resizable=1, status=1,toolbar=0,scrollbars=1');
window.opener=self;
window.close();
//-->
</script>

The above is in a web page called closings1.htm. closings1.htm is called by clicking
on a link on webpage1. When you click on the link, closing1.htm opens closings2.htm and then
closings1.htm closes.
However, it also closes webpage1.htm which I want to keep open.

How do I keep webpage1.htm open? If you like, you can go here and click on the scolling message
to see what I mean... http://www.svrops.com/montgomeryns/default.htm


"Tim Williams" <sa************@THISpacbell.net> wrote in message
news:Gm*****************@newssvr14.news.prodigy.co m...
You cannot do this on a page which is already open (and would be best
advised that it would be pretty annoying if you were able to....)

Option for removing chrome is only available if you're openeing a new
window using "window.open()"

Tim.
"bobj" <bo**@frontiernet.net> wrote in message
news:UJ***************@news01.roc.ny...
The following will resize a web page on opening
when put in the head section of the web page.

<script language="JavaScript">
<!--
window.moveTo (150, 75);
window.resizeTo (700, 600);
//-->
</script>

If I want to remove the scrollbars, status bar, tool bar,
menu bar, etc., how do I include that?

Thanks.


Jul 23 '05 #3

"bobj" <bo**@frontiernet.net> wrote in message
news:2U***************@news01.roc.ny...
Very well then. I tried this:

<script language="javascript">
<!--
window.open('closings2.htm','', 'height=500,width=700,
screenX=100,screenY=100,top=75,left=150,
location=0,menubar=0,resizable=1, status=1,toolbar=0,scrollbars=1');
window.opener=self;
window.close();
//-->
</script>

The above is in a web page called closings1.htm. closings1.htm is called
by clicking
on a link on webpage1. When you click on the link, closing1.htm opens
closings2.htm and then
closings1.htm closes.
However, it also closes webpage1.htm which I want to keep open.

How do I keep webpage1.htm open? If you like, you can go here and click
on the scolling message
to see what I mean... http://www.svrops.com/montgomeryns/default.htm


I tried it, all it did for me was close IE. I figured out because I have
Google popup blocker. so, its doing the window close, but not popping the
popup. you should realize that more and more ppl are using popup blockers,
and your window.opens are going to be unreliable.

when you get right down to it, do you really even need a popup? why
couldn't the school closures just be displayed on a regular page?

--
juglesh
Jul 23 '05 #4

As juglesh notes, you would be better off just creating a regular page
and linking to it: more and more browsers will by default not show
pop-ups.

merry christmas

tim

"bobj" <bo**@frontiernet.net> wrote in message
news:2U***************@news01.roc.ny...
Very well then. I tried this:

<script language="javascript">
<!--
window.open('closings2.htm','', 'height=500,width=700,
screenX=100,screenY=100,top=75,left=150,
location=0,menubar=0,resizable=1, status=1,toolbar=0,scrollbars=1');
window.opener=self;
window.close();
//-->
</script>

The above is in a web page called closings1.htm. closings1.htm is
called by clicking
on a link on webpage1. When you click on the link, closing1.htm
opens closings2.htm and then
closings1.htm closes.
However, it also closes webpage1.htm which I want to keep open.

How do I keep webpage1.htm open? If you like, you can go here and
click on the scolling message
to see what I mean... http://www.svrops.com/montgomeryns/default.htm

Jul 23 '05 #5
Good point.... Thanks.
"juglesh" <ju*****@nospamRadioKDUG.com> wrote in message news:jn7zd.13564$k25.8441@attbi_s53...

"bobj" <bo**@frontiernet.net> wrote in message
news:2U***************@news01.roc.ny...
Very well then. I tried this:

<script language="javascript">
<!--
window.open('closings2.htm','', 'height=500,width=700,
screenX=100,screenY=100,top=75,left=150,
location=0,menubar=0,resizable=1, status=1,toolbar=0,scrollbars=1');
window.opener=self;
window.close();
//-->
</script>

The above is in a web page called closings1.htm. closings1.htm is called
by clicking
on a link on webpage1. When you click on the link, closing1.htm opens
closings2.htm and then
closings1.htm closes.
However, it also closes webpage1.htm which I want to keep open.

How do I keep webpage1.htm open? If you like, you can go here and click
on the scolling message
to see what I mean... http://www.svrops.com/montgomeryns/default.htm


I tried it, all it did for me was close IE. I figured out because I have
Google popup blocker. so, its doing the window close, but not popping the
popup. you should realize that more and more ppl are using popup blockers,
and your window.opens are going to be unreliable.

when you get right down to it, do you really even need a popup? why
couldn't the school closures just be displayed on a regular page?

--
juglesh

Jul 23 '05 #6

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

Similar topics

2
by: Alex Hopson | last post by:
I'm using the code below to loop through some images and resize each image twice, once to create a thumbnail and once to create a small image. The page stops loading around the 38th image out of...
6
by: Robert J. O'Hara | last post by:
I'm one of those people who practices what some consider "dull" and others consider "elegantly conservative" page design. I appreciate good traditional typography and standards-compliant liquid...
2
by: Nabil Benamar | last post by:
Hi, can someone help me please. I want to reload th page after resizing the window (Browser). I used the event onresize. The problem the server gets too many requests (on every resize: pixel by...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
1
by: Mustufa Baig | last post by:
Hello, Can anybody tell me how or refer me a link where I can find the client side javascript to make the positions and resizing of the controls on .aspx page independent of screen resolution....
12
by: WJ | last post by:
What controls needed to cause the entire page moves along with the "resizing" of the web browser (left/right)? Example: Click here http://www.google.com, when Google main page is displayed in...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
6
by: tomasio | last post by:
Dear NG, years have passed and I am still more designer than programmer. I build a new version of my website which has a few nasty bugs, especially on my startpage: Resizing text brakes the...
9
by: dli07 | last post by:
Hello, I'm trying to convert a piece of code that creates a dynamic vertical resizing bar in a table from internet explorer to firefox. It's based on a post from...
1
helpmepls
by: helpmepls | last post by:
i have a site where I have an iframe mainFrame which loads page content from the main menu (top horizontal menu). within this mainFrame is a second menu to left specific to the loaded page, and...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.