开发者

Available parameters in window.open URL argument

In window.open javascript command (which opens a new windows) what options 开发者_运维知识库are available for first argument i.e URL?

One which is very common is http format (e.g. http://www.google.com). Which are the others?

Can i open a .pdf file from a shared folder using window.open?

Thanks!


var myWindow = window.open(url, windowName[, windowFeatures]);

You can read more about it here: http://developer.mozilla.org/en/DOM/window.open


According the MDN Docs:

This is the URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, it can be an image file or any type of file which is supported by the browser.

I assume this will work in most/all browsers, but the MSDN article doesn't get too specific, so you might have to experiment.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜