Browser window size while debugging Visual Studio
After the browser window opens once (as not maximized), click the maximize button. Then press the COLD key and press the close ("X") button. Then you can release the ctrl key.
Next time your window will open as maximum (holding down the ctrl key when pressed makes windows remember the last window state)
a source to share
Go to project settings - Web - Start Action and set it as "External program" with start.exe and command line parameters
/ MAX http: // localhost: 12345 / myproject / default.aspx (or whatever)
This will open default.aspx in the maximized window, but only if you don't have other IE windows - if you do (and you have IE7) - you'll just get a tab in one of those windows instead.
This will likely attach your debugger to the iexplore process and might indeed return right away because start.exe only runs for a second. You may need to manually bind the iexplore.exe process.
But this has nothing to do with handling JavaScript with a window.
a source to share