Closed
Bug 153156
Opened 23 years ago
Closed 23 years ago
Script error. Child window script should reload parent window
Categories
(Core :: DOM: Core & HTML, defect)
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>
Comment 1•23 years ago
|
||
-> DOm0
Assignee: Matti → jst
Component: Browser-General → DOM Level 0
QA Contact: imajes-qa → desale
![]() |
||
Comment 2•23 years ago
|
||
What's the context in which you use the script? What _does_ get reloaded?
Comment 3•23 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
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•