Reputation: 33
I am trying to make files downloadable from my website, but when I test it by clicking on the download file, it opens up the code in a webpage, instead of downloading it. I'm using Firefox, by the way.
<a href="currentage.py">Age calculator I made, where you plug in your birth year.</a>
I know I'm probably doing something very stupid, but the tutorials told me to do this.
Upvotes: 3
Views: 1843
Reputation: 19753
IN HTML5 download
will do the trick
<a href="currentage.py" download>Age calculator I made, where you plug in your birth year.</a>
Upvotes: 4