我直接用 parent.document.title=document.title;不行
解决方案 »
- 正则 问题
- FireFox中如何代码实现Copy image to clipboard.急!!!
- 添加一个结点后如何增加它的事件处理函数?
- javascript problem
- 怎么给不同的TD添加不同的onmouseover事件!!
- 求教:如何使横滚动条出现时在中间位置呢!!很急。。。请大侠们帮帮忙吧
- 请教一个关于层大小的问题
- 如何用open()方法打开两个子窗口?
- JS高手进来看看啊
- window.showModalDialog在winxp下面怎么有状态栏了?
- form 如何把target设置为parent.xxx
- 如何将表单所有元素(文本框、单选、下拉框等)设为只读? 最好是通过的方法.
return window.showModalDialog('/Script/dialogFrame.html',dialogArgument,'center:yes;help:no;resizable:no;status:no;scroll:no;dialogWidth:'+Width+'px;dialogHeight:'+Height+'px;');
}var dialogArgument=new Array();
dialogArgument["src"]="a.html";
dialogArgument["title"]="Add Style";
var a=ShowDialog(dialogArgument,250,350);
----------------------------------------
----dialogFrame.html---<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript> var DialogArgument=window.dialogArguments;
if (DialogArgument!=null) document.write("<title>"+DialogArgument.title+"</title>");
else document.write("<title>Dialog</title>");
</script>
</head><body leftMargin=0 rightMargin=0 topMargin=0 bottomMargin=0 onload="initFun();">
<iframe width=100% height=100% id=dialogIframe></iframe>
</body></html>
<script language=javascript>function initFun()
{ if (DialogArgument!=null) document.all.dialogIframe.src=DialogArgument.src;
else alert('Sorry! Perhaps you are use this page wrongly');
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript> var DialogArgument=window.dialogArguments;
if (DialogArgument!=null) document.write("<title>"+DialogArgument.title+"</title>");
else document.write("<title>Dialog</title>");
</script>
</head>
------------------------------------------------------------------------------good ! thanx