Forcing a Download Dialog Without Using PHP or ASP

Citation:
M., K. M., "Forcing a Download Dialog Without Using PHP or ASP", GoArticles (Information Technology, 2011.

Abstract:

To force a download dialog box that gives the user a choice to open or save a linked file is done by using the appropriate PHP code or ASP. Not all Web services for Web hosting allow the use of PHP scripts or ASP. Some totally refuse PHP use because they find that the lengthy PHP scripts can keep their servers very busy and may disrupt their services. Others charge additionally for allowing use of PHP scripts to, hopefully, discourage their use. It can, therefore, become frustrating not to be able to offer downloads from one's hosted homepage on such Web services. So how can this situation be resolved? The answer ultimately must lie in the use of a different script language: JavaScript. The full JavaScript code for forcing a download dialog without using PHP or ASP is given and its construction explained.

Notes:

n/a