set_screen_resolution
set_screen_resolution($width=-1,$height=-1,$pixelDepth=-1); - set screen resolution data in the JS engine. Sets navigator : (width, height, pixelDepth) and their duplicates (availWidth,availHeight,colorDepth) (Available from version 4.10.1)
The function accepts parameters as input:
$width – navigator screen width (pixels).width and navigator.availWidth, when -1 - the default value is used$height – screen height (pixels) navigator.height and navigator.availHeight, when -1 - the default value is used$pixelDepth – pixel depth (bits) navigator.pixelDepth and navigator.colorDepth, when -1 - the default value is
After testing, the function returns the result of its work to the script :
true – successfully setfalse – failed to set