Don't do this, most browsers prevent this from happening, for good reason.
Would you like me to come stretch your email client across both monitors so you can't work? Why should a web browser be treated any differently? Some decisions are for the user this is definitely one of them.
The users has expectations browsing the web, doing things like this breaks those expectations. If I had 20 tabs open in chrome (and often do, on several windows), I don't want your site to resize the other 19. It does however make me want to hunt you down with a salad fork and stab it in your eye.