Hi,
I use the script below to close a popup window containing a submission form. On most occasions the script is fine as it is, as it closes the popup and refreshes the parent page (dashboard). There is however one occasion where my users will enter the popup from another page, but they should still be sent to the dashboard page when the popup close. How can the script be modified to work like that?
Regards,
Frode
<script>
function cb_close()
{
if (window.opener && !window.opener.closed) {
window.opener.location.reload();
//window.opener