I have basic idea to the html and studying the basic things of java script and applied on it. And also i want to create the download link in my sample website. But i dont have idea of how to create it? Please tell me the procedure.. Thanks in Advance.
If by "the download link" you mean a link to a file to download, use
<a href="http://example.com/files/myfile.pdf" target="_blank">Download</a>
the target=_blank
will make a new browser window appear before the download starts. That window will usually be closed when the browser discovers that the resource is a file download.
Note that file types known to the browser (e.g. JPG or GIF images) will usually be opened within the browser.
You can try sending the right headers to force a download like outlined e.g. here. (server side scripting or access to the server settings is required for that.)
A download link would be a link to the resource you want to download. It is constructed in the same way that any other link would be:
<a href="path to resource.name of file">Link</a>
<a href="files/installer.exe">Link to installer</a>
Like this
<a href="www.yoursite.com/theThingYouWantToDownload">Link name</a>
So a file name.jpg on a site example.com would look like this
<a href="www.example.com/name.jpg">Image</a>
To link to the file, do the same as any other page link:
<a href="...">link text</a>
To force things to download even if they have an embedded plugin (Windows + QuickTime = ugh), you can use this in your htaccess / apache2.conf:
AddType application/octet-stream EXTENSION