467,920 Members | 1,103 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,920 developers. It's quick & easy.

How can I make a window Resizable?

Hello!

I opened a new window using 'resizable=no'.
Can the child window make itself resizable even if it's opened with
'resizable=no'?

For example:

<body onload="javascript: window.resizable=true;">
TIA.
Sam

Jan 4 '06 #1
  • viewed: 7880
Share:
4 Replies
sa********@gmail.com said the following on 1/4/2006 4:53 PM:
Hello!

I opened a new window using 'resizable=no'.
Don't.
Can the child window make itself resizable even if it's opened with
'resizable=no'?
Depends on the browser and user settings.
For example:

<body onload="javascript: window.resizable=true;">


Did you test it?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 4 '06 #2
Thanks for the answer.
I tested it with IE6 and it didn't work.

Sam

Jan 5 '06 #3
sa********@gmail.com said the following on 1/4/2006 8:24 PM:

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.
Thanks for the answer.
I tested it with IE6 and it didn't work.


The way you make a window resizable is that you don't disable
resizability to begin with. Then, it's not an issue.

Why are you wanting to open a window without allowing resize though?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 5 '06 #4

sa********@gmail.com wrote:
Hello!

I opened a new window using 'resizable=no'.
Can the child window make itself resizable even if it's opened with
'resizable=no'?


Yes, it can.
'resizable=no' is just a general hint to the window manager not to
provide resize widgets.It's up to the window manager to obey it and up
to the user to override it. Not necessarily with Javascript - there are
easier and faster ways.
I, for example, whenever face a non-resizable popup (it annoys the hell
off me), call the mouse gesture of "duplicate window". The same page
gets opened in a standard, fully-featured browser window, then I just
close the annoying popup. Bookmark the page, then open the bookmark,
window settings won't be remembered. Set window.width, window.height
from a bookmarklet.
The options are countless. And if you wonder why there's so many of
them, non-resizable windows are EXTREMELY annoying, so users developed
all kinds of workarounds. They have them and they will use them against
you. And send you their worst regards.

Jan 5 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Scott | last post: by
2 posts views Thread by Charles Packer | last post: by
3 posts views Thread by Craig | last post: by
4 posts views Thread by Phillip Parr | last post: by
4 posts views Thread by darius | last post: by
18 posts views Thread by Andrew Poulos | last post: by
5 posts views Thread by James Black | last post: by
1 post views Thread by Socrates | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.