|
From: sam.s.kong on 4 Jan 2006 16:53 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
From: Randy Webb on 4 Jan 2006 17:45 sam.s.kong(a)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/
From: sam.s.kong on 4 Jan 2006 20:24 Thanks for the answer. I tested it with IE6 and it didn't work. Sam
From: Randy Webb on 5 Jan 2006 00:16 sam.s.kong(a)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/
From: bwucke@gmail.com on 5 Jan 2006 12:47 sam.s.kong(a)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.
|
Pages: 1 Prev: IE, XML, Objects and this Next: Changing image width using JavaScript |