$(document).ready(function() { var screenX = window.screenX; var screenY = window.screenY; })