Reputation: 33581
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
Reputation: 33581
I ended up using...
Window.open("mylocation", "Download", "width=400,height=150")
Upvotes: 1
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