Script error. Child window script should reload parent window

RESOLVED WORKSFORME

Status

()

Core
DOM: Core & HTML
--
major
RESOLVED WORKSFORME
16 years ago
16 years ago

People

(Reporter: Andy Rudmik, Assigned: jst)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
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?

Comment 3

16 years ago
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
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.