Created
September 18, 2009 20:18
-
-
Save mrichman/189271 to your computer and use it in GitHub Desktop.
Is window.parent valid for IE and FF, but not Safari?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| if (!opener) {opener = window.parent;} | |
| function ClosePopup() { | |
| if (opener) {try{opener.DisableWindowAlwaysOnTop();}catch(e){}} | |
| try{opener.document.getElementById(window.name + 'btnTargetButton').click();}catch(e){} | |
| } | |
| function OnFormSubmit() { | |
| window.onunload = null; | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment