博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
window.open 子窗口关闭刷新父页面
阅读量:4709 次
发布时间:2019-06-10

本文共 328 字,大约阅读时间需要 1 分钟。

function JsMod(htmlurl,tmpWidth,tmpHeight){

htmlurl=getRandomUrl(htmlurl);
var winObj = window.open(htmlurl, "newwindow", "height="+tmpHeight+",width="+tmpWidth);
var loop = setInterval(function() {
if(winObj.closed) {
clearInterval(loop);
parent.location.reload();
}
}, 1);
}

转载于:https://www.cnblogs.com/itniwota/p/6809985.html

你可能感兴趣的文章
Mysql命令大全
查看>>
nginx.conf 基础配置
查看>>
centos创建文件命令
查看>>
【php】 php能做什么
查看>>
VTK初学一,比较常见的错误2
查看>>
结队-贪吃蛇-项目进度
查看>>
Axure自动备份功能!让意外不在可怕!
查看>>
robot Framework实战
查看>>
android 入门 005(登录记住)
查看>>
嵌入式成长轨迹36 【Zigbee项目】【单片机基础】【单片机SD卡】
查看>>
SpringBoot集成阿里巴巴Druid监控
查看>>
Java基础教程——线程通信
查看>>
c/c++ 广义表
查看>>
Appium连接多个设备并发执行(GUI模式)
查看>>
Kafka如何保证数据不丢失
查看>>
cat命令
查看>>
matlab求定积分和不定积分
查看>>
找规律(hdu2502)
查看>>
LinkedList源码分析
查看>>
IDBC
查看>>