在线等待:如何在子frame中通过js调用主页面中的applet对象? self.opener.document.sampleapplet.query();试试! 呵呵 还是我.. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 好像还是不行.这回提示"self.opener.document为空或不是对象"to:longshenwang(独眼龙) 能加你msn向你请教吗?这段时间你热心帮我解答好几次,谢谢.我的msn:[email protected] 还有要是不用设置主页面的form属性最好了. 用parent.a()就可以了...下面是详细代码: 1.asp 中的iframe调用了 2.asp ...1.asp<html><head> <script language="javascript"> function Msg() { alert("这是1.asp中的消息提示"); } </script></head><body> <iframe width="200px" src="2.asp"></iframe></body></html>2.asp<html><head> <script language="javascript"> function test() { parent.Msg();//这句就是调用父窗口的函数 } </script></head><body> <input type="button" value="点击我试试" onClick="test()"></body></html>知道怎么样调用父窗口的函数了...举一反三...那其他的就非常简单了.. 下面的应该可以了,formname为前一窗中的名字,也就是<form name=form1>中的form1parent.document.formname.sampleapplet.query();加上form.就简单多了! 有个问题,请高手来帮忙,急急急急急急急急急急急急急 如何用js弹出一个层,并且弹出这个层是另外一个url的内容 找不到对象的元素集! 求助 图片轮播效果 选择文件路径窗口的问题。熟悉JQuery或JavaScript的朋友请进来。 JS图片预览 小弟高分跪求大人帮忙! 怎么样才能做一个置顶的层? jquery切换图问题 如何根据数据结果生成dataoption 送分! 100分求救!我在page1中用window.open(page2 ...打开了page2我想在page2关闭时在page1中的JAVASCRIPT函数中得到page2的一组radio中选种的
能加你msn向你请教吗?这段时间你热心帮我解答好几次,谢谢.
我的msn:[email protected]
1.asp
<html><head>
<script language="javascript">
function Msg()
{
alert("这是1.asp中的消息提示");
}
</script>
</head>
<body>
<iframe width="200px" src="2.asp"></iframe>
</body>
</html>2.asp
<html>
<head>
<script language="javascript">
function test()
{
parent.Msg();//这句就是调用父窗口的函数
}
</script>
</head>
<body>
<input type="button" value="点击我试试" onClick="test()">
</body>
</html>知道怎么样调用父窗口的函数了...举一反三...那其他的就非常简单了..
parent.document.formname.sampleapplet.query();
加上form.就简单多了!