118
rated 0 times
[
120]
[
2]
/ answers: 1 / hits: 18617
/ 13 Years ago, mon, january 9, 2012, 12:00:00
I want to get live screen resolution of web browser as user RESTORE DOWN OR MAXIMIZE without refreshing the page.
More From » css
I want to get live screen resolution of web browser as user RESTORE DOWN OR MAXIMIZE without refreshing the page.
Are you using jQuery? If yes, then the code below should work
$(window).resize(function(){
var windowWidth = $(window).width();
var windowHeight = $(window).height();
// windowWidth & windowHeight are automatically updated when the browser size is modified
});