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

How to open a smaller window?

P: n/a
When I use Window.open ("mywindow.htm") the size of the window is the same as
the size of the original. How can I open the new window in a smaller size, so
people can still see my main window, and the smaller one.

Joe
ga*****@aol.com
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
In article <20***************************@mb-m06.aol.com>,
ga*****@aol.com enlightened us with...
When I use Window.open ("mywindow.htm") the size of the window is the same as
the size of the original. How can I open the new window in a smaller size, so
people can still see my main window, and the smaller one.

Joe
ga*****@aol.com


This is in the FAQ.

Just use the properties when you open the window.
window.open(URL,Title,properties);

window.open('someUrl.html','my window','height=100,width=
100,toolbars=yes,scrollbars=yes');

--
--
~kaeli~
In democracy your vote counts. In feudalism your count votes.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2

P: n/a
In article <MP************************@nntp.lucent.com>, kaeli
<ti******@NOSPAM.comcast.net> writes:
This is in the FAQ.

Just use the properties when you open the window.
window.open(URL,Title,properties);

window.open('someUrl.html','my window','height=100,width=
100,toolbars=yes,scrollbars=yes');


The second paramter to window.open is the name of the window, not the title of
it. Also, some browsers choke on window names with spaces in them.

<URL:
http://devedge.netscape.com/library/...1.3/reference/
window.html#1202731 />

<quote>
windowName
A string specifying the window name to use in the TARGET attribute of a FORM
or A tag. windowName can contain only alphanumeric or underscore (_)
characters.
</quote>
--
Randy
Jul 20 '05 #3

P: n/a
In article <20***************************@mb-m27.aol.com>,
hi************@aol.com enlightened us with...
>


The second paramter to window.open is the name of the window, not the title of
it. Also, some browsers choke on window names with spaces in them.


Oops, I meant name, but didn't know about the space issue. Thanks.
--
--
~kaeli~
Black holes were created when God divided by 0.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.