日期:2014-05-17  浏览次数:20900 次

请教:一个很实用的功能,但没知代码怎样写?
在主页面点一下按钮,弹出小窗口后,要求不能控制主页面,一定要关了小窗口才可以控制主页面,这个功能怎样实现?

------解决方案--------------------
<html>
<SCRIPT LANGUAGE= "javascript ">
<!--
showModalDialog( 'http://bbs.csdn.net, 'example04 ', 'dialogWidth:400px;dialogHeight:300px;
dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes ')
//-->
</SCRIPT>
</body>
</html>
------解决方案--------------------
showModalDialog( 'http://bbs.csdn.net ', 'example04 ', 'dialogWidth:400px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes ');
------解决方案--------------------
模态窗或模拟窗口!
参考:
http://www.v-ec.com/dh20156/article.asp?id=10
------解决方案--------------------
showModalDialog
------解决方案--------------------
网页对话框不就是这样么。