2011-03-25 20 views
0

可能重複:
Open new popup window without address bars in firefox & IE的JavaScript在Firefox不excecuted

我有下面的代碼在IE(沒有地址欄,狀態欄等工作,但在Firefox中沒有任何...建議?

function popUpDetails(trackNum) { 
     var newWindow = (window.open('popUpDetails.aspx?trackNum=' + trackNum, 'Title', 'width=540,height=265, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no, modal=no')); 
    } 

enter image description here

enter image description here

+1

重複此:[如何彈出Firefox窗口沒有地址欄或狀態?](http://stackoverflow.com/questions/2924851/how-to-pop-out-a-firefox-window -without-an-address-bar-or-status) – Nightfirecat 2011-03-25 18:42:14

+0

似乎與http://stackoverflow.com/questions/2909645/open-new-popup-window-without-address-bars-in-firefox-ie – 2011-03-25 18:52:54

回答

0

我不認爲這在Mozilla支持。我相信,而不是使用彈出窗口,你應該使用colorbox一個jQuery燈箱。 http://colorpowered.com/colorbox/

+0

window.open完全由Firefox支持(https://developer.mozilla.org/en/DOM/window.open) – machineghost 2011-03-25 21:29:10

+0

我不認爲sushil意味着window.open不受支持,但隱藏地址欄時這樣做是不受支持的。哪個是對的。 – 2011-03-25 21:52:30

+0

啊,我誤解了 – machineghost 2011-03-25 22:31:42