Closed Bug 70331 Opened 25 years ago Closed 25 years ago

window.open('url', '_self'/'_parent'/'_top') doesn't open in the right window

Categories

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

defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME
mozilla0.9.2

People

(Reporter: martin.honnen, Assigned: danm.moz)

Details

Attachments

(1 file)

With NN3/4 (and IE4+) window.open('url', '_self') opens the url in the current window, window.open('url', '_parent') opens the url in the parent window (that which is the JavaScript parent window) and window.open('url', '_top') opens the url in the top window (that is in a framed page in the top level window otherwise in the current window). window.open in Mozilla ignores this special window names and just treats them as normal window names resulting in opening a new window which is wrong and should be remedied to achieve compatibility with DOM level 0 (NN3/4)
Reassigning to danm.
Assignee: jst → danm
OS: other → All
Hardware: PC → All
->moz0.9.1
Target Milestone: --- → mozilla0.9.1
So, _self is being dealt with on bug 67288. _top appears to me to work. Leaving _parent (? yes, no?)
_parent works for me on Mozilla 2001-03-02-05/Win2k
Target Milestone: mozilla0.9.1 → mozilla0.9.2
resolving as wfm per comments by Bob and John
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Verified with 2001-08-28-08 on Win95.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: