Closed
Bug 180325
Opened 22 years ago
Closed 22 years ago
window.close() does not work on any page containing a frameset
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 130113
People
(Reporter: bstrauss, Assigned: jst)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; .NET CLR 1.0.3705)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
Any attempt to close window using window.close() in conjunction with a window
that is part of, or containing a frameset fails. Even if this window was opened
by another and the javascript attempts to close the child(containing a
frameset) from the handle in the parent it will fail.
Reproducible: Always
Steps to Reproduce:
1.Place javascript function window.close() or any variation in a frame or
frameset window. Besure to properly reference the top frame.
2. Call this function with any onclick, button, href, or other page event.
Actual Results:
1. Window fails to close.
2. Javascript error is generated in the JavaScript Console (close is not a
function).
Expected Results:
Window should have executed the function and closed the window.
There is a work around for this bug. Instead of trying to close the window
directly from the parent frame, first redirect out of the frameset to page that
contains one line of JavaScript: "window.close()". Window then closes as
expected.
Comment 1•22 years ago
|
||
made this a dupe of bug 130113, because of bug 130739
*** This bug has been marked as a duplicate of 130113 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•