Force browser to download file javascript

17 Dec 2019 Sometimes your web browser will try to display or play whatever file you're downloading, and you might end up playing music or video inside 

This refreshes the page including re-downloading any referenced JavaScript files or you should force the browser to download a new copy of the JS/CSS files.

How do I force a browser to download a file instead of displaying it? In other words I have a page with MP3 and WMA files on it and I would like for the visitor to download the file instead of play it without having to right-click and save. How can I force the browser to pop up the "save file as" dialog box instead of playing it?

Jsonp or JSON-P (JSON with Padding) is a JavaScript technique for requesting data by loading a All rights reserved