框架页里的框架页应该怎么调用 ^^" 有点饶嘴哈 表单对象可以直接这样调用mainFrame.fromname.inputname.value脚本函数就不知道能不能调用了。没试过 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 都可以调用表单对象是document对象脚本是window对象 FRM_0.htm-------------------<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>外框架</title></head><frameset rows="*,80" frameborder="NO" border="0" framespacing="0"> <frame src="FRM_1.htm" name="mainFrame"> <frame src="htm_0.htm" name="bottomFrame" scrolling="NO" noresize></frameset><noframes><body></body></noframes></html>FRM_1.htm------------------<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>内框架</title></head><frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0"> <frame src="htm_top.htm" name="topFrame" scrolling="NO" noresize > <frameset rows="*" cols="147,*" framespacing="0" frameborder="NO" border="0"> <frame src="htm_left.htm" name="leftFrame" scrolling="NO" noresize> <frame src="htm_main.htm" name="htm_mainFrame"> </frameset></frameset><noframes><body></body></noframes></html>htm_main.htm---------------------<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><script language="javascript">function htm_main(){alert('test_main');}</script></head><body><p>htm_main.htm</p><form id="form1" name="form1" method="post" action=""> <input name="text1" type="text" id="text1" value="text1text1" /></form><p> </p></body></html>htm_0.htm---------------------<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>外框架</title><script language="javascript">function htm_0(){alert(parent.frames('mainFrame').frames('htm_mainFrame').form1.text1.value);window.parent.mainFrame.htm_mainFrame.htm_main();}</script></head><body>htm_0.htm<input type="button" name="Submit" value="按钮" onClick="htm_0()"></body></html> 字母导航 想用一个JS UI框架,请大家推荐一个易用的,谢谢! ext4设置按钮默认宽度为何无效? 如何通过JS增加行?如何通过JS增加行?如何通过JS增加行? 看一段正则的意思 如何判断目标窗口已存在? 发个刚写的小东西^_^ html组件下载地址?在线等侯! 如何实现一些与表格、右键及取值相关的功能? jscript中的函数可以嵌套调用吗? 千位分隔符的问题 请教:在提交验证的时候能否不直接在onSubmit="return login_check(this);"处指定函数,而在onClick="javascript:login_check(this);"并
脚本是window对象
-------------------
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>外框架</title></head><frameset rows="*,80" frameborder="NO" border="0" framespacing="0">
<frame src="FRM_1.htm" name="mainFrame">
<frame src="htm_0.htm" name="bottomFrame" scrolling="NO" noresize>
</frameset>
<noframes><body></body></noframes>
</html>FRM_1.htm
------------------
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>内框架</title></head><frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="htm_top.htm" name="topFrame" scrolling="NO" noresize >
<frameset rows="*" cols="147,*" framespacing="0" frameborder="NO" border="0">
<frame src="htm_left.htm" name="leftFrame" scrolling="NO" noresize>
<frame src="htm_main.htm" name="htm_mainFrame">
</frameset>
</frameset>
<noframes><body></body></noframes>
</html>htm_main.htm
---------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function htm_main()
{
alert('test_main');
}
</script>
</head><body>
<p>htm_main.htm</p>
<form id="form1" name="form1" method="post" action="">
<input name="text1" type="text" id="text1" value="text1text1" />
</form>
<p> </p>
</body>
</html>
htm_0.htm
---------------------
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>外框架</title>
<script language="javascript">
function htm_0()
{
alert(parent.frames('mainFrame').frames('htm_mainFrame').form1.text1.value);
window.parent.mainFrame.htm_mainFrame.htm_main();
}
</script>
</head>
<body>
htm_0.htm
<input type="button" name="Submit" value="按钮" onClick="htm_0()">
</body></html>