我打开窗口作为模态。 window.showModalDialog(“http://www.google.com”,“”,“dialogWidth:500px; dialogHeight:500px”)模态对话框选项
当我设置高度时,还有其他选项可用吗? 像选项按钮,菜单等,我可以找到教程?
编辑
它工作在Mozilla的Firefox,但人们说这不!
我的代码是
请人编辑要显示的目的
<html>
<head>
<script>
function abc() {
window.showModalDialog("3.htm", "", "dialogWidth:500px;dialogHeight:500px");
}
</script>
</head>
<body>
<input type="button" id="check" name="check" onclick="abc()" value="open"/>
</body>
</html>
第二个编辑
的页面3.htm代码
<html>
<head>
<script>
function abc(){
close()
}
</script>
</head>
<body>
<input type="button" id="check" name="check" onclick="abc()" value="close"/>
</body>
</html>
检查我的样本代码出两个代码在火狐上!然后告诉我。
三EDIT
确定这不是在corme和歌剧工作
您正在使用哪种模态窗口代码? – superUntitled 2009-04-24 06:10:06