Blogger Information
Blog 39
fans 1
comment 0
visits 62367
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
ifram添加信息或者修改信息后、刷新父页面
Dai的博客
Original
900 people have browsed it

QQ截图20170808132758.png

当点击提交后、后台就进行数据处理、处理过后、我们需要刷新父页面、实时查看到我的更改的内容、这时只要在ifram页面当中的 form表单里面的 提交按钮添加一个onlick()事件、

例如 :

<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" onclick="refresh()">
<script type="text/javascript">
function refresh(){
    parent.location.reload();//完成刷新
}
</script>


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post