window-open-close

Javascript - focus on calling window after a close

I want to A) open a pop up window via javascript - easy enough B) close this window via Javascript - easy enough C) ensure that the window that spawned the popup in A is focused on again when close in B. Seem to remember can do this but can't remember how. ...