怎样调用另一页面的JAVASCRIPT 给个思路A页OPEN NEW WIN,然后延时等待回传B页 ONLOAD,回传参数到AA页调用B页函数 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.showdialog 应该可以调用子页面的js 做一个演示给你:A.htm<html><head><script>function Test(){ alert("Test");}</script></head><body><button onclick="window.open('B.htm')">B.htm</button></body></html>B.htm<html><head></head><body><button onclick="window.opener.Test();">Test</button></body></html> 或者 var win = new window() 这样不知道会不会有用调用win的js 哦,看错了,你是要父页面调用子页面重写一个.A.htm<html><head><script>var mywin;</script></head><body><button onclick="mywin = window.open('B.htm')">Open B.htm</button><button onclick="mywin.Test('Hello World');">Get</button></body></html>B.htm<html><head><script>function Test(str){ alert(str);}</script></head><body></body></html> 有人知道Jscript作为服务端语言怎么在asp.net里跑吗? 代码没问题,但是两个代码在同一个网页中就只能用一个。求大神修改一下.... 求助 yui的命名空间问题 js 焦点获得和失去问题 非IE下,鼠标滚动事件的问题。 字符串中出現單引號雙引號或括號時如何處理 Iframe中图片如何加热点 页面上Button等控件事件机制是怎样处理的??? 怎样让浏览器支持emf格式的图形文件 求一个在窗体右侧的随窗体上下运动的层的实例!! JS的好手门帮个忙 递归调用的时候出现的一个很奇怪的问题。
A.htm
<html>
<head>
<script>
function Test()
{
alert("Test");
}
</script>
</head>
<body>
<button onclick="window.open('B.htm')">B.htm</button>
</body>
</html>B.htm
<html>
<head>
</head>
<body>
<button onclick="window.opener.Test();">Test</button>
</body>
</html>
调用win的js
<html>
<head>
<script>
var mywin;
</script>
</head>
<body>
<button onclick="mywin = window.open('B.htm')">Open B.htm</button>
<button onclick="mywin.Test('Hello World');">Get</button>
</body>
</html>B.htm
<html>
<head>
<script>
function Test(str)
{
alert(str);
}
</script>
</head>
<body>
</body>
</html>