window.open()
javascript,它在其他浏览器中运行良好,但在ie-8
的情况下,它会显示一些错误,例如弹出窗口。
答案 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无耻地复制)