打開一個模態(tài)窗口:
window.showModalDialog(url,window,"dialogWidth:950px; dialogHeight:450px; help: no; status: no");
模態(tài)窗口如果提交form,,會彈出一個新窗口,,如何解決呢,?
其實很簡單,,加上以下代碼:
<script type="text/javascript">
window.name = "curWindow";
</script>
對應的form添加target:
<form name="myForm" id="myForm" action="" method="post" target="curWindow">
|
|