var opLocation = opener.document.location.toString();

(dopodichè mi arrendo )