beefproject/beef-migration-test — Issue #123: 123 - Add beefjs API function to detect screen settings 
Author: beefproject
Created: 2011-12-03 02:09:38+00:00
State: open

This function will detect browser window and screen settings. It will run automatically when a new hooked browser connects to the framework. The results will be displayed in the main tab of the hooked browser.

The function will be available for modules to use from the browser side via beefjs API. Also, the results will be available on the server side as they will be stored in the database.

The following snippet may be useful:
var sw = screen.width;
var sh = screen.height;
var sd = screen.colorDepth;

Also, the source from following issue show special conditions:
http://code.google.com/p/beef/issues/detail?id=121

Original link: http://code.google.com/p/beef/issues/detail?id=123