For standards compliant browsers:
X – window.screenX
Y – window.screenY
For IE:
X – window.screenLeft
Y – window.screenTop
Keep in mind, implementations vary. Beware of multi-monitor setups…
More Related Contents:
- how to parse json value to javascript [closed]
- Calculate distance between two points in google maps V3
- HTML5 Local storage vs. Session storage
- How to get the file name from a full path using JavaScript?
- Pass parameter to p:remoteCommand from JavaScript
- Why is the value of my input always empty if I store it in a variable?
- How to use componentWillMount() in React Hooks?
- Convert object array to hash map, indexed by an attribute value of the Object
- How to get number of rows in using JavaScript?
- Wrapping a set of DOM elements using JavaScript
- How to read xml file contents in jQuery and display in html elements?
- How to chain map and filter functions in the correct order
- Remove a FileList item from a multiple “input:file”
- focus() not working in safari or chrome
- iOS WKWebView not showing javascript alert() dialog
- Javascript: Creating Functions in a For Loop
- What does useCallback/useMemo do in React?
- Impossible to hide navigation bars in Safari iOS 7 for iPhone/iPod touch
- How to hide bottom navigation bar on a specific screen in react native?
- document.execCommand() FontSize in pixels?
- How to get the canvas-relative position of an object that is in a group?
- Submit form on Enter key with javascript
- How to get the width of an svg:g element
- How to show fullscreen popup window in javascript?
- JS defineProperty and prototype
- Is it a bad practice to use jQuery in Angular? [closed]
- flot graph, use legend to turn on/off series
- JavaScript is in array [duplicate]
- Does “untyped” also mean “dynamically typed” in the academic CS world?
- Why can’t I use a Javascript function before its definition inside a try block?