x-, y-positions of viewport's right, bottom edges (respectively)?
javascript, jquery, tooltip
Solution
I finally settled for this (jQuery-based) solution:
var $w = $(window);
var right_edge_x = $w.scrollLeft() + $w.width();
var bottom_edge_y = $w.scrollTop() + $w.height();
I'm not sure exactly how it differs from the other solutions proposed, let alone whether it's better, but at least I can make some sense of it...
Problem
I'm looking for a plugin-free way to get the x-coordinate of the visible viewport's right edge, and likewise, the y-coordinate of its bottom edge, using either jQuery or "plain" JavaScript. Thanks!