In the parent window, I have an onclick event that opens a (popup) child window (that contains a mp3 player, playing sample audio clips).
The child window is opened with:
<a href="#" onclick="popupwindow('popup.html', 'mp3Player',800,300 ); return false;">Mp3 Clips</a>
I assumed (wrongly;) I could return to the parent with:
<a href="#" onclick="window.opener();">return to win</a>
How do I return to the parent (& leaving the child window open).
In the parent window the javascript function is:
function popupwindow(url, winName, w, h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
return window.open(url, winName, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}