Link to home
Start Free TrialLog in
Avatar of plq
plqFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Resizing a showModalDialog from within

Can a html (asp) page opened using showModalDialog resize its own window ?

We have a dialog box page which is called from many different places at a standard 800x600 px. Now we want it to be a bit bigger, but the calling size could be different at different customer sites. We want to force its size to be what it needs to be wherever it was called from.

I've always thought it daft that its the caller that determines the dialog window size, in vb for example its always the dialog box that determines its own size.
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of plq

ASKER

Yes, thats how we open it at present. But the dialog can be opened from customers code which has 800x600 hard coded.

I will give window.dialogHeight  and window.dialogWidth a quick try.. thanks
Avatar of plq

ASKER

Cool works a treat

Thank you