Interview Questions

javascript Job Interview in Technical Lead Round: How to use client side resolution like width and height in the javascript

Technical Lead Round Interview Questions and Answers


(Continued from previous question...)

javascript Job Interview in Technical Lead Round: How to use client side resolution like width and height in the javascript

first you have to find the resolution after that you can modify your application gui issues

below i mentioned the code to retrive the resolution using JS
/*************************************************/
function GetResolution(){
var width=screen.width;
var height=screen.height;
document.getElementById("hdnresolutionwidth").value=width;
document.getElementById("hdnresolutionheight").value=height;
}
/*********************************************************/

from this hdn values you can use and chage the GUI settings in your application

(Continued on next question...)

Other Interview Questions