设定需要刷新的iframe的name属性为yourIframe1
在提交后的返回页面中写入如下语句:
<script language="JavaScript">
function rf()
{
alert("函数相应: Loading...稍等,上面的iframe,就是我的主页了。")
parent.iframe1.location="http://www.redv.com"
}
rf()//加在函数也可以在body里用onload=rf()加载,
</script>例子:
http://dsa.cumt.edu.cn/new/student/article/temp/iframe.htm
在提交后的返回页面中写入如下语句:
<script language="JavaScript">
function rf()
{
alert("函数相应: Loading...稍等,上面的iframe,就是我的主页了。")
parent.iframe1.location="http://www.redv.com"
}
rf()//加在函数也可以在body里用onload=rf()加载,
</script>例子:
http://dsa.cumt.edu.cn/new/student/article/temp/iframe.htm
解决方案 »
- 求帮修改代码,如何实现点击小图片出现大图片后,出现几个连接按扭
- js 高手看一下(拖动问题)
- jquery.autocomplete插件怎么数据对齐和只选一个
- 长字符串显示为...的方法
- 感激+10分请问 javascript 里弹出一个带 [确定]和[取消]的对话框 而且让默认选择的是[取消]按钮 如何实现!!!!
- 如何动态增加文本框?
- 不知如何在表单中将<textarea>中的值直接在本页面赋给<input type=hidden...> ?
- 关于window.open()打开窗体的问题?
- 求问JQuery UI如何限制最大时间为当月
- vue中使用echarts第一次可以显示,路由跳转之后不能显示
- 很简单的一个问题,关于页面table对象的。
- 大家看看我的修改的一个关于右键菜单的程序,特别是,meizz(梅花雨)
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body bgcolor="#FFFFFF" text="#000000">
<iframe name="iframe1" src="http://dsa.cumt.edu.cn/new/student/article/" width="750" height="200"></iframe><iframe name="iframe2" src="iframe2.asp" width="750" height="200"></iframe>
</body>
</html>''''''''''''''''''''''
这是iframe2.asp
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
if Request.Form("go")<>"" then//注意这里的判断
%>
<script language="JavaScript">
function rf()
{
alert("函数相应: Loading...稍等,上面的iframe,就是我的主页了。")
parent.iframe1.location="http://www.redv.com"//注意这里!!!
}
rf()
</script>
aaaaaaaaaaaaaaaaaa
<%
end if
%><form action="iframe2.asp" method="post">
<input type="hidden" name="go" value="1">
<input type="submit" name="submit1" value="Submit">
</form>
</body>
</html>
''''''''''''''''''
iframe1.htm没有什么,就是显示数据吗?这个应该会的。