I am trying to create a text file using JavaScript, I know it is possible by using ActiveX object, but it runs well only on IE browsers.
My requirement is to generat
In JavaScript, you can use the following line to ask the user for saving a text file:
window.open("data:text/json;charset=utf-8," + escape("Ur String Object goes here"));
I tested this in some popular browsers some time back but please check if it works in Safari or not.