国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

如何更新父窗體

2024-07-21 02:16:20
字體:
來源:轉載
供稿:網友
response.write("<script language='javascript'>window.opener.location=window.opener.location.href;</script>")


好了,給你個例子吧,自己改一下就可以了!!
第一種方案是:
file a.htm

function opendialog(url,param)
{
return window.open(url,param, "dialogwidth:450px;dialogheight:450px;help:no;status:no");
}


file b.htm
<script language="javascript">
function js_do(val)
{
self.opener.document.all.filename.value=val
}
</script>

第二種方案是:
file a.htm
<html>
<script language="javascript">
function opendialog(url,param)
{
return window.showmodaldialog(url,param, "dialogwidth:450px;dialogheight:450px;help:no;status:no");
}

function js_getdata(url)
{
return opendialog("b.htm","");
}

</script>
<body>
<form name="myfrm">
<input type="text" name="filename" onclick="this.value=js_getdata()">
</form>
</body>
</html>

file b.htm

<html>
<script language="javascript">
function js_do(val)
{
window.returnvalue=val;
window.close();
}
</script>
<body>
<form name="myfrm">
<input type="text" name="filename">
<input type="text" name="btndo" onclick="js_do(this.form.filename.value)">
</form>
</body>
</html>





response.write("<script language='javascript'>window.opener.document.all.txt1.value="+thevalue+";</script>");



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 湘乡市| 正定县| 新田县| 辽阳县| 钟祥市| 黄浦区| 渭源县| 樟树市| 和硕县| 阿荣旗| 乐安县| 五莲县| 冕宁县| 新竹市| 西贡区| 石家庄市| 济阳县| 南澳县| 彭州市| 邵阳市| 佛山市| 会东县| 南部县| 黄梅县| 恭城| 保定市| 重庆市| 中江县| 泸州市| 翁源县| 团风县| 盐城市| 文山县| 吴忠市| 若尔盖县| 马鞍山市| 科技| 广水市| 自治县| 乾安县| 莱阳市|