showModalDialog 打开后任意改变大小

父窗口JS

<script language=javascript>

window.showModalDialog("http://ofyou.com/system/test1.html","Dialog Box","dialogHeight: 300px; dialogWidth: 300px; dialogTop: 250px; dialogLeft: 300px; edge: Sunken; center: No; help: No; resizable: No; status: No;");

</script>

 

模态对话框JS

<body>

<br>test1.html的代码:<br>
<script language=javascript>

function adjustDims()

{

window.dialogHeight = ''+(window.document.all.tags("body")[0].scrollHeight+230)+'px';

window.dialogWidth = '' +(window.document.all.tags("body")[0].scrollWidth+230)+'px';

}

</script>

</body>

你可能感兴趣的:(showModalDialog)