This answer https://stackoverflow.com/a/4196018/545430 states that the "this" object when used within a JQuery callback will refer to the selected element to which the callback is being added. However this doesn't appear to work when setting the ready callback of a child window:
var new_window = window.open('./NewWindow.aspx', '_blank');
$(new_window.document).ready(function () {
console.dir(this);
});
In the above example this is clearly the document of the parent window and not the "NewWindow" document.