window.open页面关闭后刷新父页面

  1. /**

  2. * 监听打开的弹窗,关闭后刷新页面

  3. */

  4. function openWin(url,text,winInfo){

    1. var winObj = window.open(url,text,winInfo);

    2. var loop = setInterval(function() {

      1. if(winObj.closed) {

        1. clearInterval(loop);

        2. //alert('closed');

        3. parent.location.reload();

      2. }

  5. },  1);

猜你喜欢

转载自blog.csdn.net/qq_37346607/article/details/82627125