X
Tap here to go to the mobile version of the site.

Support Forum

Seemingly Odd Behavior of window.open

Posted

SCENARIO 1

In Window A:

calling window.open('WindowB.html') opens Window B in a new TAB within Window A. This is expected.

SCENARIO 2

In Window A

calling window.open('WindowB.html','_blank','top=50') opens a brand new window, Window B, this is expected.

Now in Window B call window.open('WindowC.html') and a new tab opens in Window A. The opening of the tab (as opposed to a window) is expected, but having it open the tab in Window A is not expected.

Why would the tab be added to Window A, when the call was made from Window B?

Is there anyway, via javascript, to have it open in Window B?

This happened

Not sure how often

== always

SCENARIO 1 In Window A: calling window.open('WindowB.html') opens Window B in a new TAB within Window A. This is expected. SCENARIO 2 In Window A calling window.open('WindowB.html','_blank','top=50') opens a brand new window, Window B, this is expected. Now in Window B call window.open('WindowC.html') and a new tab opens in Window A. The opening of the tab (as opposed to a window) is expected, but having it open the tab in Window A is not expected. Why would the tab be added to Window A, when the call was made from Window B? Is there anyway, via javascript, to have it open in Window B? == This happened == Not sure how often == always

Additional System Details

Installed Plug-ins

  • -Gecko default plugin
  • Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Java Information.
  • npmnqmp 071705000010
  • 3.0.40818.0
  • Office Live Update v1.0
  • The Flip4Mac WMV Plugin allows you to view Windows Media content using QuickTime.
  • The QuakeLive Plugin is required for QuakeLive
  • Contribute Plug-inInbrowser Editor Plug-in
  • Shockwave Flash 10.0 r45
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.

Application

  • User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

More Information

Application Basics
Name
Firefox
Version
3.6.3
Profile Directory
Show in Finder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
CSS Refresh
1.0.1
false
{29DDEF5F-8486-42bf-8D44-88B2B29DA0CB}
Flashblock
1.5.13
false
{3d7eb24f-2740-49df-8937-200b1cc08f8a}
HTTP Resource Test
0.0.7
true
resttest@pyrocufflink.net
Live HTTP headers
0.16
true
{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}
Modify Headers
0.6.6
true
Save File to
2.0b2
true
savefileto@mozdev.org
Screengrab
0.96.3
true
{02450954-cdd9-410f-b1da-db804e18c671}
Stylish
1.0.8
false
{46551EC9-40F0-4e47-8E18-8E5CF550CFB8}
Web Developer
1.1.8
true
Xmarks
3.6.14
false
foxmarks@kei.com
CSS Reloader
1.0.2
true
cssreloader@kenneth.io
Firebug
1.5.4
true
firebug@software.joehewitt.com
YSlow
2.0.7
true
yslow@yahoo-inc.com
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar
0
browser.history_expire_days.mirror
180
browser.places.importBookmarksHTML
false
browser.places.smartBookmarksVersion
2
browser.startup.homepage_override.mstone
rv:1.9.2.3
browser.tabs.warnOnClose
false
dom.disable_open_during_load
false
extensions.lastAppVersion
3.6.3
font.minimum-size.x-western
10
network.cookie.prefsMigrated
true
places.last_vacuum
1274465739
print.macosx.pagesetup-2
AAAYGDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04Ij8+CjwhRE9DVFlQRSBwbGlzdCBQVUJMSUMgIi0vL0FwcGxlLy9EVEQgUExJU1QgMS4w…
print.print_bgcolor
false
print.print_bgimages
true
print.print_command
print.print_downloadfonts
false
print.print_evenpages
true
print.print_in_color
true
print.print_margin_bottom
0.5
print.print_margin_left
0.5
print.print_margin_right
0.5
print.print_margin_top
0.5
print.print_oddpages
true
print.print_orientation
0
print.print_pagedelay
500
print.print_paper_data
0
print.print_paper_height
11.00
print.print_paper_size_type
1
print.print_paper_size_unit
0
print.print_paper_width
8.50
print.print_printer
print.print_reversed
false
print.print_scaling
1.00
print.print_shrink_to_fit
true
print.print_to_file
false
print.print_unwriteable_margin_bottom
56
print.print_unwriteable_margin_left
25
print.print_unwriteable_margin_right
25
print.print_unwriteable_margin_top
25
privacy.cpd.siteSettings
true
privacy.sanitize.migrateFx3Prefs
true
privacy.sanitize.timeSpan
0
security.warn_viewing_mixed
false

the-edmeister
  • Top 25 Contributor
  • Moderator
5425 solutions 40489 answers

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. http://forums.mozillazine.org/viewforum.php?f=25 You'll need to register and login to be able to post in that forum.

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. [http://forums.mozillazine.org/viewforum.php?f=25] You'll need to register and login to be able to post in that forum.