When you coding for dynamic website, you may need to know screen resolution of the client's machine. How can you get it?
var w = screen.width;
var h = screen.height;
alert( "Your screen resolution is " + w + 'x' + h);
location.replace('http://www.yourdomain.com/index.php?w=' + screen.width + '&h=' + screen.height );
$_SESSION['width'] = $_GET['w']; // store session data
$_SESSION['height'] = $_GET['h']; // store session data
Just a normal software developer who love to write code. Developing professional software since 1999. After working in the software industry for many years, I've started my own website to share knowledges and experiences.