resizing IE browser windows

A

Aaron

I am opening a page, appfile.aspx, with this:
Dim script As String

script =
"<script>window.open('appfile.aspx','NewPage','top=0,left=0');</script>"

Page.RegisterClientScriptBlock("MyScript", script)



I am resizing appfile.aspx with this:

<script type="text/javascript">
self.resizeTo(632,500);
window.focus();
window.name = 'newWin';
</script>



This works pretty nicely, but currently the browser opens at a much larger
size, and then is resized to 632x500. Does anyone know how to open the
browser with the correct dimensions?

Thanks
Aaron
 
K

Ken Dopierala Jr.

Hi Aaron,

In your window.open() try this:

window.open('appfile.aspx','NewPage','width=632,height=500,top=0,left=0');

Then you can remove the self.resizeTo() call. Good luck! Ken.
 
D

darrel

This works pretty nicely, but currently the browser opens at a much larger
size, and then is resized to 632x500.

You are resizing after the page opens. If you want it sized to begin with,
you need to launch it from another page.

-Darrel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top