I have a link which launches a new html page in a new tab with simple jquery, like _target=blank, no issue.
Expected:
- Page opened in a new tab, and should be kept opened, and a Save as dialog prompted
Current unexpected behavior:
- Page is opened in a new tab, and then closed with a Save dialog prompted
Shortly, I want to keep the page open, while prompting a Save as dialog.
Using Content-Disposition attachment seems to have no chance to keep the page open.
I didn’t do any exit(); either, but the page is never showed, except for the dialog.
Thanks
Try pulling your page initially as a normal page, and use a meta refresh to redirect to the same url with a parameter telling your PHP to serve the page again as a download.
Example: