javascript - Downloading HTML files without opening a browser -
i have url don't want open in browser. servlet url points able download jpeg image of rendered html document using html2canvas library based on specific params.
how can download html jpeg without rendering html on client side. possible. please share inputs.
you can try this:-
response.addheader("content-disposition", "attachment; filename=" + name);
or ian suggested:-
content-disposition: attachment; filename=abc.jpeg
Comments
Post a Comment