Is there a way to position a window opened with jQuery to the top right corner of the screen?
This is the code I have right now:
$(document).ready(function() {
$("#dirs a").click(function() {
// opens in new window
window.open(this.href, "customWindow", "width=960, height=1040");
return false;
});
});
And I want it to open in the top right corner of the screen, similar to how it would appear if “snapped” with Windows Aero snap in Vista or higher. Is there a way to make this happen?
By the way, this is a simple page that only I will use, and I will only use it in Chrome on a 1920×1080 monitor, so it doesn’t have to have any fancy stuff to adjust for different browsers or screen sizes.
If he wants it on the top right doesn’t he need this?