iframe 刷新求助
一个画面上 一个按钮 一个iframe 点击按钮的时候 刷新iframe,为什么我写的不能实现,总是会把整个画面跳转掉。
求高手...
<html>
<head>
<title>Untitled</title>
</head>
<script type="text/javascript">
function iframe2aa()
{
var frame = document.getElementById("ifame");
frame.document.location = "aa.htm";
}
function iframe2bb()
{
var frame = document.getElementById("ifame");
frame.document.location = "bb.htm";
}
</script>
<body>
<table>
<tr>
<td>
<div id="div1">
<input type="button" value="button_aa" onclick="iframe2aa()">
<input type="button" value="button_bb" onclick="iframe2bb()">
<iframe width="100%" height="450"
src="aa.htm"
frameborder="0" id="ifame"
name="ifame" scrolling="no">
</iframe>
</div>
</td>
</tr>
</table>
</body>
</html>
求高手...
<html>
<head>
<title>Untitled</title>
</head>
<script type="text/javascript">
function iframe2aa()
{
var frame = document.getElementById("ifame");
frame.document.location = "aa.htm";
}
function iframe2bb()
{
var frame = document.getElementById("ifame");
frame.document.location = "bb.htm";
}
</script>
<body>
<table>
<tr>
<td>
<div id="div1">
<input type="button" value="button_aa" onclick="iframe2aa()">
<input type="button" value="button_bb" onclick="iframe2bb()">
<iframe width="100%" height="450"
src="aa.htm"
frameborder="0" id="ifame"
name="ifame" scrolling="no">
</iframe>
</div>
</td>
</tr>
</table>
</body>
</html>
...全文
相关推荐
基于bootstrap用iframe实现的局部刷新的案例
基于bootstrap用JS实现的局部刷新的案例,基于iframe实现tab页切换的效果
Vue中对iframe实现keep alive无刷新的方法
前言 最近一个需求,需要在 Vue 项目中加入 含有iframe 的页面,同时在路由切换的过程中,要求iframe的内容 不会被刷新 。一开始使用了Vue自带的keep- alive发现没有用,于是自己研究了一下解决方案。。。。。。 Vue的keep-alive原理 要实现对保持iframe页的状态。我们先搞清楚为什么Vue的keep-alive不能凑效。keep-alive原理是把组件里的节点信息保留在了 VNode (在内存里),在需要渲染时候从Vnode渲染到真实DOM上。iframe页里的内容并不属于节点的信息,所以使用keep-alive依然会重新渲染iframe内的内容。 另外
JS页面跳转和js对iframe进行页面跳转、刷新
JS页面跳转和js对iframe进行页面跳转、刷新
基于AdminLTE(bootstrap)用iframe实现的局部刷新的案例
基于AdminLTE(bootstrap)用JS实现的局部刷新的案例,这个是使用js刷新局部页面,以及提交的案例,还有使用js刷新的案例在我另外的资源里
iframe如何刷新的三种实现方案
iframe如何刷新一直都被网友所关注,接下来为大家详细介绍下三种:用iframe的name属性定位/id属性定位/当iframe的src为其它网站地址时,感兴趣的朋友可以参考下哈


