如何访问源页 <form onsubmit="setTimeout('refresh()',500);this.submit()" action = "jcxxtbEnter.jsp" target = "_blank"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form action = "jcxxtbEnter.jsp" target = "_blank" onsubmit='window.open("jcxxtbEnter.jsp?aaa=1&bbb=2***");return false;'>在jcxxtbEnter.jsp里面window.opener.document.form1.text1.value="aaaaaa"; <form action = "jcxxtbEnter.jsp" target = "newpage" onsubmit="window.open('','newpage')">than you can use window.opener 用opener怎么让源页自己执行其javascript函数呢 不能执行另外一个页面上的javascript函数,但是你可以通过window.opener来控制其所有的元素,你可以把源页上的函数修改一下,放到打开的页面上来执行 我在a.html里用<form action = "jcxxtbEnter.jsp" target = "_blank">同事a.html里还有个javascript函数refresh()提交后谈出一个新页,我如何在新页里令a.html执行它自己的refresh(),没办法吗? 在a.html里面window.open("jcxxtbEnter.jsp");在jcxxtbEnter.jsp里面window.opener.location.reload();但是你是没有办法在一个页面里执行另外一个页面的javascript函数的! 我试了,可以test.html<html><title>test</title><head></head><script language="JavaScript">function aaa() { document.write("aaa");}</script><body onLoad="javascript:window.open('test2.htm')"></body></html>test2.htm<html><head><title>test2</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><a href=# onClick="javascript:window.opener.aaa()">aaa</a></body></html> 如何获得表单焦点 请高手帮忙看哈,一下面这段代码的意思。 求助:Extjs获取不到后台数据 求教JS高手:document.form1和document.getElementsByName区别 web后台监测客户端视频播放时间 关于浮点数相加的问题! 把字符串转换为函数 关于页面打印的问题 如何让动态插入的JavaScript可以执行 新人求教 怎么用JavaScript删除value里面的值 怎样作一个简单的工具条,鼠标放上与离开能有凹凸感就可以,不需要太复杂的? 请问如何将数据传送到新开的带框架的窗口?
window.open("jcxxtbEnter.jsp?aaa=1&bbb=2***");return false;'>在jcxxtbEnter.jsp里面
window.opener.document.form1.text1.value="aaaaaa";
<form action = "jcxxtbEnter.jsp" target = "_blank">
同事a.html里还有个javascript函数refresh()
提交后谈出一个新页,我如何在新页里令a.html执行它自己的refresh(),
没办法吗?
window.opener.location.reload();但是你是没有办法在一个页面里执行另外一个页面的javascript函数的!
<title>test</title>
<head>
</head>
<script language="JavaScript">
function aaa() {
document.write("aaa");
}
</script>
<body onLoad="javascript:window.open('test2.htm')">
</body>
</html>test2.htm<html>
<head>
<title>test2</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<a href=# onClick="javascript:window.opener.aaa()">aaa</a>
</body>
</html>