JavaScript
文章平均质量分 50
lixw_123
这个作者很懒,什么都没留下…
展开
-
window.returnValue和showModalDialog实现弹出有模式窗体
returnValue是javascript中html的window对象的属性,目的是返回窗口值,当用window.showModalDialog函数打开一个IE的模式窗口(模式窗口知道吧,就是打开后不能操作父窗口,只能等模式窗口关闭时才能操作)时,用于返回窗口的值,下面举个例子: 1、parent.html1.<html xmlns="http://www.w3.org/1999/...原创 2011-01-05 22:46:31 · 137 阅读 · 0 评论 -
window.open 后的窗口居中
window.open后要使弹出的窗口始终在屏幕的中间,可进行如下设置:window.open(url,"rulegenerate","status=yes,center=yes,toolbar=no,left="+((screen.width-900)/2)+",top="+((screen.height-400)/2)+",width=900,height=400,location=no,...原创 2011-01-05 23:02:07 · 349 阅读 · 0 评论 -
window.open 和 window.opener 的详细解说
window.open与window.opener window.openwindow.open ("page.html", "newwindow", "height=100, width=400, toolbar= no, menubar=no, scrollbars=no, resizable=no, location=no, status=no,top=100,left=30...原创 2011-01-05 23:21:05 · 949 阅读 · 0 评论