刷新问题 this.opener.document.location.reload() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在第一个页面test.html,代码:<script language="JavaScript">function op(){window.open('test2.php','小窗口','height=100, width=400')} </script> <form name="form1" method="post" action="test2.html"> <input type="text" name="a"><input type="text" name="b"><input type="button" value="提交" onclick="op()"></form>在弹出窗口test2.html,代码如下:<script language="JavaScript"> function clearall() {window.close(); window.opener.document.form1.a.value=""; window.opener.document.form1.b.value=""; } </script><input type=button onclick=clearall() value="关闭"> 在小窗口中window.opener.location.reload(); 用location.replace('页面地址'),重新加载页面,这样就没有那个表单提示的窗口了 在小窗口中window.opener.location.replace('要刷新的页面地址'); 【原创】JavaScript小游戏:☆摘星星☆Ver1.0 求助js问题。。 163邮箱添加附件功能可以用鼠标拖动硬盘文件到指定位置即上传附件怎么实现啊? 如何使用js阻塞余下的处理? js问题 变态的客户,变态的要求,关于checkbox全选! 如何控制脚本宿主(WSH)加载脚本? 大虾能帮忙吗?------上传的附件名,放在一个label里面,我想超连接点击查看!??马上结帖! 一个重要的问题,用Javascript制作复杂表格…… 好奇怪的问题 求救!有人知道input框中的vale属性什么东东吗?注意,不是value啊 在url中有空格怎么传递?
<script language="JavaScript">
function op()
{
window.open('test2.php','小窗口','height=100, width=400')
}
</script>
<form name="form1" method="post" action="test2.html">
<input type="text" name="a">
<input type="text" name="b">
<input type="button" value="提交" onclick="op()">
</form>在弹出窗口test2.html,代码如下:
<script language="JavaScript">
function clearall()
{window.close();
window.opener.document.form1.a.value="";
window.opener.document.form1.b.value="";
}
</script>
<input type=button onclick=clearall() value="关闭">
window.opener.location.reload();
window.opener.location.replace('要刷新的页面地址');