开发者

windows.open() method error

window.open() of javascript, it is working fine in other browsers, but in case of ie-8 it shows some error such as p开发者_开发知识库opup.


You're probably getting stopped by the pop-up blocker.


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

The allowed parameters are as below

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.

(Shamelessly copied from here)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜