Jump to content

download button


x_maras

Recommended Posts

Hi,

 

I'm making a small application which produces a text file and then the

user should click on a download button.

In the download button I say onClick=window.open('text.txt');

 

When I click it the txt opens in a new tab and shows the text in the browser.

I would like to make it to be downloaded to the users pc.

 

Is this possible?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/163413-download-button/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.