showModalDialog - window size
Posted: Wed Sep 13, 2006 8:51 am
Hi. Its the first time Ive used the showModalDialog function and was wondering how best to size the dialog to compensate for the window borders.
My command looks a bit like this:
While I set the width and height to 700 and 500 respectively, the internal size of the window.document object comes out to be 694 and 448.
Any help would be appreciated.
Thanks,
Moriarty
My command looks a bit like this:
Code: Select all
onclick='window.showModalDialog("BigBadForm.htm","Arg1","dialogHeight: 500px; dialogWidth: 700px; dialogTop: 150px; dialogLeft: 150px; edge: Raised; center: No; help: No; scroll: No; status: Yes;")'Any help would be appreciated.
Thanks,
Moriarty