I'm not sure which forum this belongs in, so I'll just put it in general.
I've created a popup window that has the following "close window" function:
Code: Select all
<script type="text/javascript">
<!--
function closeWin()
{
window.opener.focus();
self.close();
}
-->
</script>
This works fine in IE, but it dies in Firefox. The error is "window.opener.focus is not a function." Ehhh... ok, so how do I return the focus to the parent window with Firefox? Been googling for a while and haven't found anything. Also tried window.opener.document.focus(); and
Code: Select all
...
var parentWin = window.opener;
parentWin.focus();
...
Every variation returns the same error. Any help is appreciated.