Closed Bug 153156 Opened 22 years ago Closed 22 years ago

Script error. Child window script should reload parent window

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: arudmik, Assigned: jst)

Details

The following is the JavaScript function I use to reload the main window
from the child (this happens just before closing the child). The
"window.opener" is a JavaScript reference to the parent window(frame)
when the browser window has been opened programmatically. 

We observe that the wrong frame is being refreshed on closing the window.  This
error is cross platform.  PC and MacOS X.  The same script works on IE.

Script below.


<script>

/*
 * if parent is available, reload it. 
 * -jfp
 */
 function  doParentReload() {
    if(window.opener!=null) {
       opener.location.reload();
    }
 }//end doParentClose

</script>
-> DOm0
Assignee: Matti → jst
Component: Browser-General → DOM Level 0
QA Contact: imajes-qa → desale
What's the context in which you use the script?  What _does_ get reloaded?
Resolving as we had no reply from reporter.
Reporter, if you still have this issue in a current build, please reopen and
comment with details.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.