Javascript client side download file

JavaScript + jQuery 1.7.2 Tidy. 4. 1. var obj = {a: 123, b: "4 5 6"};. 2. var data = "text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(obj));. 3. ​. 4.

30 Apr 2013 Save/Download file using HTML5 / JavaScript – The “download” Attribute. Mine was a HTML5/Javascript based client side application. Client-side code is written in JavaScript. The code, whether inline in