By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,480 Members | 1,231 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,480 IT Pros & Developers. It's quick & easy.

Resizing a Web Page?

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a

"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

P: n/a

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.