2011-03-22 20 views
-2

window.open()它在其他瀏覽器中工作正常,但在ie-8的情況下,它顯示一些錯誤,如彈出。javascript.open()方法錯誤

+1

你的意思是'window.open()'?請提供一些與您的問題相關的代碼。 – 2011-03-22 05:24:54

+0

請儘可能提供一些代碼和一些截圖。 – 2011-03-22 05:26:52

+2

文字「有些錯誤」不會削減芥末。你需要明確地告訴我們_everything._ – paxdiablo 2011-03-22 05:31:08

回答

0

您可能會被彈出式窗口攔截器阻止。

+0

是的,除了暗示用戶禁用彈出窗口之外,你無法通過代碼來控制它。 – 2011-03-22 05:29:27

0
window.open ("http://www.location.com", "mywindow","status=1,toolbar=1"); 

允許的參數如下

status The status bar at the bottom of the window. 
toolbar The standard browser toolbar, with buttons such as Back and Forward. 
location The Location entry field where you enter the URL. 
menubar The menu bar of the window 
directories The standard browser directory buttons, such as What’s New and What’s Cool 
resizable Allow/Disallow the user to resize the window. 
scrollbars Enable the scrollbars if the document is bigger than the window 
height Specifies the height of the window in pixels. (example: height=’350′) 
width Specifies the width of the window in pixels. 

(無恥地從here複製)