windows.open()方法错误

时间:2011-03-22 05:23:25

标签: javascript internet-explorer-8

window.open() javascript,它在其他浏览器中运行良好,但在ie-8的情况下,它会显示一些错误,例如弹出窗口。

2 个答案:

答案 0 :(得分:0)

你可能会被弹出窗口拦截器拦住。

答案 1 :(得分: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无耻地复制)