美文网首页
js刷新iframe的方法

js刷新iframe的方法

作者: 对王之王对穿肠 | 来源:发表于2017-02-24 11:51 被阅读0次

<iframe id="myframe" name="myframe">

</iframe>

<input type ="button" onclick="change()"/>

<script type="type/javascript">

          function change(){

            document.getElementById("myframe").setAttribute('src','index3.html');//重置src

           --

接下来是获取iframe元素刷新,两种 方法在google chrome中可行!

         }

</script>

相关文章

网友评论

      本文标题:js刷新iframe的方法

      本文链接:https://www.haomeiwen.com/subject/owfwwttx.html