How to Download a File using JavaScript

How to Download a File using JavaScript