1.?
参数1 url,url后面可以接"?name=user"参数?
参数2 传递给子窗口的值 可以是window对象,数组 var arry=[],其他变量 类型不限制,对于字符串类型,最大为4096个字符。也?
可以传递对象?
参数3 设置子窗口的高度 ,宽度 等元素?
dialogHeight :对话框高度,不小于100px,IE4中dialogHeight 和 dialogWidth 默认的单位是em,而IE5中是px,为方便?
其见,在定义modal方式的对话框时,用px做单位。?
dialogWidth: 对话框宽度。?
dialogLeft: 离屏幕左的距离。?
dialogTop: 离屏幕上的距离。?
center: {yes | no | 1 | 0 }:窗口是否居中,默认yes,但仍可以指定高度和宽度。?
help: {yes | no | 1 | 0 }:是否显示帮助按钮,默认yes。?
resizable: {yes | no | 1 | 0 } [IE5+]:是否可被改变大小。默认no。?
status: {yes | no | 1 | 0 } [IE5+]:是否显示状态栏。默认为yes[ Modeless]或no[Modal]。?
scroll:{ yes | no | 1 | 0 | on | off }:指明对话框是否显示滚动条。默认为yes。?
下面几个属性是用在HTA中的,在一般的网页中一般不使用。?
dialogHide:{ yes | no | 1 | 0 | on | off }:在打印或者打印预览时对话框是否隐藏。默认为no。?
edge:{ sunken | raised }:指明对话框的边框样式。默认为raised。?
unadorned:{ yes | no | 1 | 0 | on | off }:默认为no。?
2.子父窗口传值?
在子窗口获取 父窗口的值?
var param = window.dialogArguments? //获取传递的参数?
如果是 数组或字符串对象 可以在子窗口进行相应操作,例如把该值赋给子窗口的某个元素等等?
如果传递的是 父窗口对象 可以通过 param .document.getElementById('checkAllid2'); 获取父窗口的?
html 元素进行相应的操作?
3.模式对话框提交?
模式对话框如果有form需要提交,提交时会新开一个浏览器,所以模式对话框提交时需要提交到?
fream框架页面 在form元素中加上target="mainFrame"?
target="mainFrame" 是主页面的 中间框架的id?
主页面?
4.可以通过window.returnValue向打开对话框的窗口返回信息,当然也可以是对象。例
2.window.open?
window.open打开窗口时 可以打开多个 且焦点不会锁定在子窗口,仍然能够操作父窗口。这样的特点使得某些情况下?
我们最好不要用open打去开一个子窗口?
父窗口打开子窗口代码?
参数1.url,url后面可以接"?name=user"?
参数2.弹出窗口的名字(非文件名) 可以为空?
参数3.设置子窗口的高度 ,宽度 等属性?
??? height=100 窗口高度;??
width=400 窗口宽度;??
top=0 窗口距离屏幕上方的象素值;??
left=0 窗口距离屏幕左侧的象素值;??
toolbar=no 是否显示工具栏,yes为显示;??
menubar,scrollbars 表示菜单栏和滚动栏。??
resizable=no 是否允许改变窗口大小,yes为允许;??
location=no 是否显示地址栏,yes为允许;??
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;?
详细解决方案
window.showModalDialog方式对话框 和 window.open
热度:220 发布时间:2012-11-23 22:54:33.0
相关解决方案
- javascript window open在ie中设立不起作用,求解决
- 急【史无前例?】奇怪有关问题,劳烦进.IE8 showModalDialog 里面的select 点几次才能点开
- window.location.href错误
- 关于window.open()的一个奇怪现象,保证你没遇到过!解决思路
- window.open传参数在页面获取地址少了参数,该如何解决
- 施用window.open("people.xls"'_blank');下载xls表
- open flash chart 一个页面展示多个chart的有关问题
- s2sh tomcat 启动报错 Caused by: java.io.FileNotFoundException: Could not open Servle,该如何解决
- 【EXTJS】iframe里嵌套ext.window,怎样使ext.window弹出到iframe外,该怎么解决
- windows系统下too many open files寻求解决方法
- window.showmodaldialog()苹果浏览器不支持?50分在线求解!该如何处理
- j2me用Connector.open(url)打开一个联接 url中含有分号(;)的时候,程序直接退出了,该如何解决
- window mobile下 midlet 怎么调用ie mobile
- window xp 装配nutch1.6
- linux系统java.net.SocketException: Too many open files解决思路
- open swing 如何使用
- 怎么读取其它进程中WindowsForms10.Window.8.app.0.378734a窗体内的表格
- Failed to open XML file解决方案
- !一个很弱的有关问题:VS2010 cannot find or open the PDB file
- var store=new ActiveXObject("CAPICOM.Store" store.Open(二, "My" 0 || 128)
- window.URl.createObjectURL()如何在vs中编辑后不能在火狐中运行,在IE中运行没有关问题
- Open Flash Chart柱状图可不可以控制柱子的宽度,该如何解决
- 关于window.open()和window.close()的有关问题
- window.location.href不跳转有关问题
- window.showModalDialog弹出窗体有关问题
- 关于top.window.location跳转的有关问题
- 用c#自带控件webBrowser开发浏览器程序,怎么阻止弹出窗口(window.open)
- window.showModalDialog子页面临父页面传值
- IIS 调用Microsoft.Office.Interop.Word.Documents.Open 回到为null
- Can't open file: 不知道什么原因!解决思路