如何让父窗口title动态等于子窗口的title 我知道用HtmlGenericControl可以动态改变title的文字,但是我不清楚怎么获取子窗口的title。不想用Request.QueryString,感觉这个太麻烦,frame之间传值是不是有更方便的方法啊?JS实现也行的。3Q先~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 main page:<html><head> <title id="tt">hello</title></head><body><input type="button" value="open" onclick="toOpen();"/><script language="javascript"> function toOpen() { window.open("newPage.htm","_blank"); }</script></body></html>==============child page:<html><head> <title id="aa">nihao</title> <script language="javascript"> function changeParentTitle() { var win=window.opener; win.document.title=document.title; } </script></head><body onload="changeParentTitle();"></body></html> 好象答非所问哦. 你大概是问frame中的子窗口改变父窗口的title.child page:<html><head> <title id="aa">nihao</title> <script language="javascript"> function changeParentTitle() { window.top.document.title=document.title; } </script></head><body onload="changeParentTitle();"></body></html> <body onload="changeParentTitle();">应该是lz想要的了 很简单的问题 C# 窗体关于进度条的问题 winform gridview DefaultCellStyle.Format 关于多线程问题 “请”用过NHibernate的进来讨论一下,我有一点疑惑。 在Treeview控件中右键如何传递参数??? 求救:关于xml,请高手或者作过这方面的人帮忙,在线等候! c#调用DLL(vc写的)的问题?十分焦急 MSMQ的问题 C#中DataTable.Select()出错了...., 附详细信息 读取文件时怎么解决中文的问题? C#应用程序,怎么能实现象QQ一样,选择当前状态,系统托盘图标也随之改变,在线
<html>
<head>
<title id="tt">hello</title>
</head>
<body>
<input type="button" value="open" onclick="toOpen();"/>
<script language="javascript">
function toOpen()
{
window.open("newPage.htm","_blank");
}
</script>
</body>
</html>
==============
child page:
<html>
<head>
<title id="aa">nihao</title>
<script language="javascript">
function changeParentTitle()
{
var win=window.opener;
win.document.title=document.title;
}
</script>
</head>
<body onload="changeParentTitle();">
</body>
</html>
<html>
<head>
<title id="aa">nihao</title>
<script language="javascript">
function changeParentTitle()
{
window.top.document.title=document.title;
}
</script>
</head>
<body onload="changeParentTitle();">
</body>
</html>