Making a window pop under in chrome

前端 未结 8 1303
攒了一身酷
攒了一身酷 2020-12-03 05:55

I have a button that needs to open a new window as a popup (under the parent page). In IE/Firefox, it works fine, but in chrome the popup appears over (on top of) the parent

8条回答
  •  -上瘾入骨i
    2020-12-03 06:54

    window.open('http://google.com','','height=500,width=500');
    window.open().close();
    

    Don't use popunders for evil

提交回复
热议问题