R – How to get the browser’s screen height

cgiheightscreen

Does anyone know how to get the screen height in a Perl CGI script? I know that Perl is a server-side language but is there any way to get the screen height (pixels) of the users screen?

Thanks

Best Solution

Do you mean getting the height of the user's browser window?

There's no way to get that information without using some Javascript.

I would use Javascript/CSS to control presentation (like width and height), not the backend language.