This code will open go.com in popup window:
<a href="javascript:void(0)" onClick="javascript:window.open('http://go.com','','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=300px,height=300px')">open</a>
and I want to use alert('closed!')
in main page, when popup is closed and I can't edit popup page for use onunload="alert('closed!')"
, because the popup page is an external page and I can't change the code like
var mywindow = window.open('http://go.com') ...
Thanks.