can I set content-disposition = attachment via javascript.
Basically, I would like to force a "SaveAs" operation after a page has loaded via Javascript, using Firefox.
How can I do this ?
can I set content-disposition = attachment via javascript.
Basically, I would like to force a "SaveAs" operation after a page has loaded via Javascript, using Firefox.
How can I do this ?
after the page is loadet, the header is already interpreted, so it wouldn't make any sense to change it then.
why can't you set the header on server-side?
Content-Disposition is a response header, ie. the server must return it. You can't achieve this with client-side javascript.