xorpower
xorpower

Reputation: 18963

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!

Upvotes: 1

Views: 14543

Answers (2)

Robert
Robert

Reputation: 4474

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

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

Upvotes: 2

sdleihssirhc
sdleihssirhc

Reputation: 42496

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.

Upvotes: 0

Related Questions