Testing for multiple screens with javascript

后端 未结 6 1407
野趣味
野趣味 2020-12-10 15:38

Is it possible to tell if the user of a website is using multiple monitors? I need to find the position of a popup but it\'s quite likely the user will have a multiple moni

6条回答
  •  心在旅途
    2020-12-10 15:54

    You can't do that. You could position the popup centered on the parent window however. I think it's a better idea to show a "div" as dialog in the middle of your website, because the chance that this is popup blocked is smaller and it's IMO less annoying.

提交回复
热议问题