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?
source
share