Question: I asked [how I can resize the browser window with JavaScript](https://stackoverflow.com/questions/7022787/can-i-resize-the-browser-window-size). Everybody told me not to do it. Why is this a bad practice?

I think sometimes it can be good. For example, I want to show users a tweeting popup page. After a user tweeted, I want to redirect him to twitter main page to let him verify his tweet. But tweeting page is small and main page should be big. In this case, making the browser window bigger seems good for user. Am I wrong? Then how should I do in this case?

**Update**

I think I need to make somethings clear.

1. I also don't want my browser to be resized. Resizing users' browser is usually bad. What I want to know is that there could be some case it can be good.
2. I also don't like popups. But as @zzzBov said, pop-outs are different. That is used in many websites even in Stack Exchange(You can see share buttons under the favorite button). I don't think it would be better if those buttons were jQuery modal dialog.

And, JavaScript `resizeTo` function can resize the browser. When I tested that function, it works well in browsers but Chrome. In Chrome, it works just in popups. I might be wrong, but I guess Chrome team also may thought that the `resizeTo` function would be needed in popups.

**Update2**

Most people just don't want the method `resizeTo` to be used anytime and anywhere. I think if that method were totally evil and useless, the browsers vendors had already disabled that method, but they didn't. 

In Chrome and Opera, the `resizeTo` method is available just in popups, and in Firefox users can disable it manually. I'm sure that one should be very careful when using the method. But I believe this method can be useful in some case.

Answer: 
I feel like everyone just read the title and not the whole question. He's specifically asking about the case of a popup window.

A very common practice in UI/UX is to use a popup window when the current application is interacting with another one. Think of submitting small bits of information like sharing the current page or even more common, logging into another service. 

Flickr does it when signing in with a Google Account and even this page does it when sharing a question.

I would think, that the user would prefer to stay on the current page and have a **little** window pop up that lets them log into Facebook for example. They can still see they're at the site they want to be at in the background, but just interacting with another one, and then the small window closes when there's a successful submission. Why redirect them to a whole new full window page?

In this case; sizing only the pop up, but not the main screen, is perfectly acceptable. There's no need to have a full screen window when there's only two text fields and a submit button.

* Resizing current user window = Bad
* Resizing temporary pop up
window to make it *less invasive* = Perfectly Acceptable
* Using
jQuery UI to create in page pop ups, may be better but how different
is that really? (UX wise)
If you want to do a popup, consider jquery UI modal dialogs. Same effect, no popup window, no resizing neccessary.