benstpierre
benstpierre

Reputation: 33581

Javascript to hit a url and cause a open/save file dialog to appear (without a new window entirely)

What javascript could I use to open a url without leaving the current page and get an open/save file dialog to appear?

Upvotes: 2

Views: 5458

Answers (2)

benstpierre
benstpierre

Reputation: 33581

I ended up using...

Window.open("mylocation", "Download", "width=400,height=150")

Upvotes: 1

Rajat
Rajat

Reputation: 34128

I dont think i get your question completely but if you are asking on how to use JS to invoke a open/save dialog for a file:

window.location = 'paste your url here';

The url should point to a resouce for which the browser is configured to show the open/save dialog.

Upvotes: 1

Related Questions