How to close a window using jQuery

前端 未结 5 1648
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 03:29

How to close a window using jQuery for all browser compatibility?



        
5条回答
  •  萌比男神i
    2020-12-15 04:29

    This will only work for windows which are opened by using window.open(); method. Try this

    var tmp=window.open(params);
    tmp.close();
    

提交回复
热议问题