Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a client that uses a web app extensively that utilizes popup windows to display search results. Her problem is that when popups get displayed, they are very small in size and she is forced to resize the window every time.

  • I've tried resizing, closing IE9 and all tabs, and reopening.
  • Restarting the computer multiple times.
  • Upgrading from IE8 to IE9 did not seem to fix this issue either, so I have to believe a fresh install or repair will not fix this problem.
  • I am aware of the setting in internet options that allows for popups to be created as new tabs, but she is not fond of that idea and prefers a new popup window.

So my question is, is there some setting that I am missing out on here that will allow me to set how large popup windows are? Hopefully there is a simple solution to this and I am just missing something.

share|improve this question
You can set the size of a popup window with JavaScript. has a height and width property. You may need to go in and modify this code. – P.Brian.Mackey Jun 1 '11 at 14:09
Have you access to the server? If so this shoul work: win2 ="win2.html", "Window2", " width=310,height=600,scrollbars=yes"); – slotishtype Jun 1 '11 at 14:37

StringBuilder sb = new StringBuilder(); sb.Append(""); sb.Append("'");
sb.Append(url); sb.Append("','(What ever page U suse)','height=700,width=1000,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');"); sb.Append("");

share|improve this answer
Wow! <sarcasm>Great explanation on that answer of yours!</sarcasm> Could you at least tell him what to do with that code. – HelpingHand May 29 '13 at 15:21
The question was asked way before which i never recognized but this for the window or the page which the user is using. It makes the page to resize according to the size mentioned in the height and width.So that the user dont have resize everytime. It worked for me and i did mentioned here – Akarsh Kolanu May 29 '13 at 15:25
Where do you put the code?? – HelpingHand May 29 '13 at 15:28
You made my day<Sarcasm> This always would go under the popup window function. – Akarsh Kolanu May 29 '13 at 15:36
Answers are meant to be written in the thought that this is not just for the question poster but the other users who may be facing similar questions, therefore it would be better if your answer could explain what your code does, where to put etc... in the frame of reference that you are explaining this to a beginner/intermediate level person, also please provide context to the answer to make it more understandable. Thank you. – Zain Patel May 29 '13 at 15:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.