How do I get in Internet Explorer values equivalent to: window.screenX and window.screenY in Firefox ? I've seen some "solution": window.screenLeft and window.screenTop but it is not correct. These properties give inner coordinates.
I move a window and I need values to use with window.moveTo() to restore the original location.
var saveLeft = window.screenLeft; var saveTop = window.screenTop; window.moveTo(saveLeft, saveTop); var savePos = [ saveLeft + (saveLeft - window.screenLeft), saveTop + (saveTop - window.screenTop) ];
Seems to work
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With