davidklonski
06-27-2004, 06:21 PM
Hi people
I am using window.showModalDialog() to open a modal dialog window.
I would like to set a minimum size for the window (width & height).
I set the following:
<body onresize="pageResize()">
...
</body>
In a javascript file I have:
function pageResize() {
var windowWidth = document.body.clientWidth;
var windowHeight = document.body.clientHeight;
if (windowWidth < 100) {
document.body.clientWidth = 100;
}
if (windowHeight < 100) {
document.body.clientHeight = 100;
}
}
I get an error saying: "Object doesn't support this action" for line settings:
document.body.clientWidth = 100;
Is there another way of doing that?
thanks in advance
I am using window.showModalDialog() to open a modal dialog window.
I would like to set a minimum size for the window (width & height).
I set the following:
<body onresize="pageResize()">
...
</body>
In a javascript file I have:
function pageResize() {
var windowWidth = document.body.clientWidth;
var windowHeight = document.body.clientHeight;
if (windowWidth < 100) {
document.body.clientWidth = 100;
}
if (windowHeight < 100) {
document.body.clientHeight = 100;
}
}
I get an error saying: "Object doesn't support this action" for line settings:
document.body.clientWidth = 100;
Is there another way of doing that?
thanks in advance