Fungovanie tejto stránky je z dôvodu údržby dočasne obmedzené. Ak článok nevyrieši váš problém a chcete položiť otázku, napíšte našej komunite podpory na Twitter @FirefoxSupport alebo Reddit /r/firefox.

Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Ďalšie informácie

Seemingly Odd Behavior of window.open

  • 1 odpoveď
  • 0 má tento problém
  • 1 zobrazenie
  • Posledná odpoveď od the-edmeister

more options

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

Všetky odpovede (1)

more options

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.