I keep forgetting the various inconsistently named properties to move between
window, and the owner frame of each. So here's how to do it in current browsers (IE10+, fwiw)...
// window -> frame
// document -> window
// frame -> window
// frame -> document
// window -> document (duh)
// element -> document (the doc that created it, not necessarily the doc who has el in its DOM!)