King_Karlssen Posted January 9, 2006 Share Posted January 9, 2006 I received a website of my own for christmas, www.kingkarlssen.net, I have taken a couple of code and design courses at school. But I can't find anyone that knows how to attach a download to a web page. Something some one can download from my site to they're computer. Anyone know how to do this? Link to comment Share on other sites More sharing options...
real_illusions Posted January 9, 2006 Share Posted January 9, 2006 hi there..welcome to the forumits very simple.<a href="somefile.pdf">download this!</a>upoad somefile.pdf to the same directory as the webpage, and put in that link in the page. then all the user needs to do is right click and save as.it can work with pretty much any file, .exe .mp3 .jpg .txt .doc .zip .mpeg etc... Link to comment Share on other sites More sharing options...
Skemcin Posted January 9, 2006 Share Posted January 9, 2006 yeah, expanding on real_illusion's reply . . . anything that you want to act as a "download" would be anything that a web browser cannot process. If a browser knows what to do with a file, i.e. jpg gif html, then it will render it - otherwise it will prompt the user to download.Of course, this can very from browser to browser and therefore user to user. If I do not have PDF installed, then I'll be prompted to download. But, if I have PDF plug-in installed, the file will get loaded in my browser. keep that in mind. Link to comment Share on other sites More sharing options...
King_Karlssen Posted January 9, 2006 Author Share Posted January 9, 2006 So its that simple? Attach/Publish the file to your website, and anchor href some text to that file? It takes care of everything else? All the open, save, close stuff? Link to comment Share on other sites More sharing options...
Skemcin Posted January 9, 2006 Share Posted January 9, 2006 yep:)I'd make sure the target is a new window, so you dn't have folks accidently closing the file and your site when they were just interested in closing the file . . . <a href="xxxxxx.xxx" target="_blank">download xxxxxx here</a> Link to comment Share on other sites More sharing options...
King_Karlssen Posted January 10, 2006 Author Share Posted January 10, 2006 cool, thanks, I'll give that a try, unfortunatley I can't untill the weekend, parents divorced, and the computer is at dads. thanks though! Link to comment Share on other sites More sharing options...
Skemcin Posted January 10, 2006 Share Posted January 10, 2006 glad to help - trade the desktop in for a laptop - its for school (w3school that is). Link to comment Share on other sites More sharing options...
King_Karlssen Posted January 10, 2006 Author Share Posted January 10, 2006 I'd like to but its not gonna happen. Maybe someday. I could buy it myself with money I've saved but that money if for a professional Trumpet. Thats what I'm going to college for, music. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now