The width of the browser width is window.innerWidth , but don't test if it's 1024, etc, because even if the user's screen resolution is indeed 1024x768, the window can be resized and it will be something else. screen.width is the width of the screen, not the browser window, but same story here: don't let your sites functionality depend on a specific screen width.
im using it for the gallery section which has a screenshot and option to visit the site.
i set the popup to 1024 on width for 1280 and up screen width, but i wish to make it smaller if the browser is less than 1280 so it wont cover my site. can you help me with this script?
i just want it to detect the browser size
if the browser has more that 1280 width then the specific size will open if it has less than 1280 then it will open different size.
your first concept is great though (-200)