Detecting monitor result using javascript on secondary monitor

I want to determine monitor resolution with javascript . This works great with screen.height and screen.width on the main monitor. On an additional monitor (extended desktop) this does not work! When I move the browser to the secondary monitor and call the javascript function with resolution detection, screen.height and screen.width are still the resolution values ​​of the main monitor.

Does anyone know a solution to this problem?

+3
source share
1 answer

, . , , Javascript.

+2

Source: https://habr.com/ru/post/1760728/


All Articles