I need to find the screen resolution of a users screen who visits my website?
JS:
$.ajax({ url: "ajax.php", type: "POST", data: "width=" + $("body").width(), success: function(msg) { return true; } });
ajax.php
if(!empty($_POST['width'])) $width = (int)$_POST['width'];