Jump to content

Recommended Posts

How do I make a download work?

<a href="" download>

What do I put into the href attribute?

In the w3schools example, they use:

<a href="/images/myW3Schoolslogo.jpg" download>
 

Though how do I find the href attribute of a file?

 

Say I was trying to make a download button for a word file.

How do I do that?

Thanks for helping a newbie!

Edited by Inquirer
Specifying my goals
Link to post
Share on other sites

You need to upload the file to your web server. The contents of the href attribute will depends on where in the web server the file is placed.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...