日期:2014-05-20  浏览次数:20454 次

关于javascript中,window.open的问题。
我在c#中用javascript window弹出窗口。我想做个是弹出一个小窗口在当前页,如何让小窗口一直在当前页面上。禁止对当前页的操作。也就是当弹出子窗口时,操作不了父窗口!
Response.Write("<script>window.open('SetFilemoney.aspx?id=" + fileId + "','','width=280,height=80,top=500,left=500')</script>");

------解决方案--------------------
1.建议改用弹出div进行操作,可以实现
2.或者使用模态弹出窗口window.showmodaldialog
http://qzone.qq.com/blog/283506015-1221014201
------解决方案--------------------
使用模态弹出窗口window.showmodaldialog()

------解决方案--------------------
window.showmodaldialog()
------解决方案--------------------
如果用Div模拟模态对话框的话,建议禁止掉浏览器的刷新功能
推荐使用window.showModalDialog()