How can I prompt a download for a user when they click a link.
For example, instead of:
<a href="uploads/file.doc">Download Here</a>
I could use:
<a href="#">Download Here</a>
$('a').click... //Some jquery to download the file
This way, Google does not index my HREF's and private files.
Can this be done with jQuery, if so, how? Or should this be done with PHP or something instead?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…