高手救命:我要在左边的FRAME1里调用右边的FRAME2的JAVASCRIPT函数(来在FRAME2里打开一个IFRAME),如何调用。 我要在左边的FRAME1里调用右边的FRAME2的JAVASCRIPT函数???你为啥要这样呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我给你做了个小例子,运行main.htm就可以了,点击b.htm中的按钮,就可执行a.htm中的myform()函数---main.htm----<html><head><title>小例子</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><frameset cols="80,*" frameborder="NO" border="0" framespacing="0"> <frame name="leftFrame" scrolling="NO" noresize src="b.htm"> <frame name="mainFrame" src="a.htm"></frameset><noframes> <body bgcolor="#FFFFFF" text="#000000"></body></noframes> </html>-----a.htm------<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language=JavaScript type=text/JavaScript><!--function myform(){ alert("请输入您的密码!");}//--></script></head><body bgcolor="#FFFFFF" text="#000000">http://cnfsco.126.com </body></html>----b.htm----<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body> <input type="button" name="Submit" value="按钮" onclick="parent.mainFrame.myform();"></body></html> frame a,frame b,a中有一涵数dofunciton(),b中调用top.a.dofunction()就ok ASP.NET代码分离 我写的正则错在哪?测试器里正常,代码中却不正常了 简单问题 谁有比较好的文件列表转换文本信息的工具 url 的问题 + 散分 从数据库中取出来的数据多了个空格 对于已经编好的asp.net网页如何让其居中显示! 用RangValidator来验证一个TextBox的输入字符个数是否<50 哪位讲一讲水晶报表,尤其是在ASP.NET上的应用 空间和sql服务器不在同一服务器,用backup进行备份把生成.bak文件传到空间里. 如何通过ADO.NET:使用 OLE DB 检索数据 get 方式有选择传值的疑问(用str?已经实现,只是讨论是否可行)
---main.htm----<html>
<head>
<title>小例子</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" scrolling="NO" noresize src="b.htm">
<frame name="mainFrame" src="a.htm">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>-----a.htm------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=JavaScript type=text/JavaScript>
<!--
function myform()
{
alert("请输入您的密码!");
}
//-->
</script>
</head><body bgcolor="#FFFFFF" text="#000000">
http://cnfsco.126.com
</body>
</html>----b.htm----
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<input type="button" name="Submit" value="按钮" onclick="parent.mainFrame.myform();">
</body>
</html>