Below is code to get Screen Width and Height using Javascript;
function getScreenInfo()
{
var w = screen.width;
var h = screen.height;
alert("Screen Width :" + w + ", Screen Height:" + h);
}
Note: You cannot get screen width/height in ASP.net server side code, you need to manage it using Javascript.
function getScreenInfo()
{
var w = screen.width;
var h = screen.height;
alert("Screen Width :" + w + ", Screen Height:" + h);
}
Note: You cannot get screen width/height in ASP.net server side code, you need to manage it using Javascript.
No comments:
Post a Comment